]> git.immae.eu Git - github/bastienwirtz/homer.git/blame_incremental - Dockerfile
specify all icons path to fix pwa issue,
[github/bastienwirtz/homer.git] / Dockerfile
... / ...
CommitLineData
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
13FROM alpine:3.11
14
15COPY --from=build-stage /app/dist /www/
16
17ENV USER darkhttpd
18ENV GROUP darkhttpd
19ENV GID 911
20ENV UID 911
21
22RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
23 apk add -U darkhttpd
24
25USER darkhttpd
26
27ENTRYPOINT ["darkhttpd","/www/", "--no-listing"]