mirror of
https://github.com/kerberos-io/documentation.git
synced 2026-08-23 15:18:31 +00:00
do a local build in multi-stage
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,7 +1,17 @@
|
||||
FROM node:8
|
||||
|
||||
ENV NODE_ENV=production
|
||||
RUN yarn global add bower gulp
|
||||
|
||||
RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
ADD . /app
|
||||
RUN yarn && yarn run build
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY public /usr/share/nginx/html
|
||||
COPY --from=0 /app/public /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
Reference in New Issue
Block a user