Added docker basics

This commit is contained in:
2021-08-12 18:38:05 +02:00
parent d85823455f
commit 44c77a8aad
3 changed files with 66 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM registry.odit.services/hub/library/node:16-alpine3.13
WORKDIR /app
COPY package.json *.config.cjs *.config.js ./
RUN yarn
COPY src ./src
COPY static ./static
RUN yarn build
# final image
FROM registry.odit.services/hub/fholzer/nginx-brotli:v1.19.1
COPY --from=0 /app/build /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf