Dockerfile for PWA - Needs Compose + Volumes

This commit is contained in:
Ben Mitchinson committed 2020-02-11 16:24:41 -06:00
1 parent 0cc690d04e
commit 8f78bd5092
2 files changed
+18

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
node_modules
npm-debug.log*
+16
View File
@@ -0,0 +1,16 @@
FROM node:12.10.0
WORKDIR /app
# cd app folder within container.
COPY package*.json ./
RUN npm install
COPY . .
# copy {everything in PWA} {WORKDIR (/app)}
# this is okay because node_modules is ignored
EXPOSE 3000
CMD ["npm", "start"]