aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2020-05-25 15:07:03 -0700
committerBastien Wirtz <bastien.wirtz@gmail.com>2020-05-25 15:07:03 -0700
commitb9c5fcf085bed9c6100283133531b36bfbb06cf0 (patch)
tree7baa4d16c9d6c06745727c7c273065a29b8fc1d7 /Dockerfile
parentab7ac44c191e3b7dea696e76b74097e23f73b18c (diff)
downloadhomer-b9c5fcf085bed9c6100283133531b36bfbb06cf0.tar.gz
homer-b9c5fcf085bed9c6100283133531b36bfbb06cf0.tar.zst
homer-b9c5fcf085bed9c6100283133531b36bfbb06cf0.zip
Build system integration using vue-cli.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 7621639..ea28aa3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,18 @@
1# build stage
2FROM node:lts-alpine as build-stage
3
4WORKDIR /app
5
6COPY package*.json ./
7RUN yarn install
8
9COPY . .
10RUN yarn build
11
12# production stage
1FROM alpine:3.11 13FROM alpine:3.11
2 14
3COPY ./ /www/ 15COPY --from=build-stage /app/dist /www/
4 16
5ENV USER darkhttpd 17ENV USER darkhttpd
6ENV GROUP darkhttpd 18ENV GROUP darkhttpd
@@ -12,4 +24,4 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} &
12 24
13USER darkhttpd 25USER darkhttpd
14 26
15ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] 27ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file