[2.4.3] Add Docker Support, Make Address Optional

This commit is contained in:
Amruth Pillai
2020-12-24 11:08:59 +05:30
parent c1cc9d0a69
commit 85a489cefa
15 changed files with 92 additions and 51 deletions

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM node as builder
WORKDIR /app
COPY ./ /app/
RUN npm install
RUN npm run build
FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html
COPY --from=builder /app/public/ /usr/share/nginx/html
COPY server.conf /etc/nginx/conf.d/default.conf