Make website Docker ready

This commit is contained in:
2020-06-01 16:09:57 +02:00
parent be3a400512
commit 466b9ea8db
7 changed files with 123 additions and 1 deletions

15
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:alpine as builder
WORKDIR '/app'
COPY ./package.json ./
RUN yarn
COPY . .
RUN yarn build
FROM nginx:alpine
LABEL maintainer="Kevin Reis <contact@humenius.me>"
COPY --from=builder /app/build /usr/share/nginx/html
COPY nginx/nginx.conf /etc/nginx/conf.d
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]