aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index ea28aa3..205d759 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,7 +4,7 @@ FROM node:lts-alpine as build-stage
4WORKDIR /app 4WORKDIR /app
5 5
6COPY package*.json ./ 6COPY package*.json ./
7RUN yarn install 7RUN yarn install --frozen-lockfile
8 8
9COPY . . 9COPY . .
10RUN yarn build 10RUN yarn build
@@ -12,8 +12,6 @@ RUN yarn build
12# production stage 12# production stage
13FROM alpine:3.11 13FROM alpine:3.11
14 14
15COPY --from=build-stage /app/dist /www/
16
17ENV USER darkhttpd 15ENV USER darkhttpd
18ENV GROUP darkhttpd 16ENV GROUP darkhttpd
19ENV GID 911 17ENV GID 911
@@ -22,6 +20,8 @@ ENV UID 911
22RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ 20RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
23 apk add -U darkhttpd 21 apk add -U darkhttpd
24 22
25USER darkhttpd 23USER ${USER}
24
25COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
26 26
27ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file 27ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file