diff options
author | Calvin Bui <3604363+calvinbui@users.noreply.github.com> | 2020-06-11 11:32:24 +1000 |
---|---|---|
committer | Calvin Bui <3604363+calvinbui@users.noreply.github.com> | 2020-06-11 11:32:24 +1000 |
commit | d10b219db596bb215db502b42e19443b8924fd56 (patch) | |
tree | 264865a94d870f203a2cf26dae230d2f58a5bd28 /Dockerfile | |
parent | ac1442c640645b1b80b98fc3c25504df439ea1fa (diff) | |
download | homer-d10b219db596bb215db502b42e19443b8924fd56.tar.gz homer-d10b219db596bb215db502b42e19443b8924fd56.tar.zst homer-d10b219db596bb215db502b42e19443b8924fd56.zip |
copy artifacts later in the build step with permissions
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12,8 +12,6 @@ RUN yarn build | |||
12 | # production stage | 12 | # production stage |
13 | FROM alpine:3.11 | 13 | FROM alpine:3.11 |
14 | 14 | ||
15 | COPY --from=build-stage /app/dist /www/ | ||
16 | |||
17 | ENV USER darkhttpd | 15 | ENV USER darkhttpd |
18 | ENV GROUP darkhttpd | 16 | ENV GROUP darkhttpd |
19 | ENV GID 911 | 17 | ENV GID 911 |
@@ -24,4 +22,6 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} & | |||
24 | 22 | ||
25 | USER ${USER} | 23 | USER ${USER} |
26 | 24 | ||
25 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | ||
26 | |||
27 | ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file | 27 | ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file |