experiments with docker packaging, figuring out deploy plan

This commit is contained in:
Amruth Pillai
2022-03-03 09:35:13 +01:00
parent a30011e841
commit 2aa3786f5f
12 changed files with 241 additions and 15 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM mcr.microsoft.com/playwright:focal
WORKDIR /app
COPY ./package*.json .
RUN npm config set unsafe-perm true
RUN npm ci
RUN npm install sharp --ignore-scripts=false
COPY . .
RUN npm run build
EXPOSE 3000
EXPOSE 3100
CMD [ "npm", "start" ]