app delivered as a Docker package: frontend and backend

This commit is contained in:
brian
2021-03-24 13:00:58 -04:00
parent a0101ffb7e
commit c140dd3b67
21 changed files with 696 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
FROM node:15.12.0-alpine3.13
RUN apk add --no-cache python3 g++ make
WORKDIR /home/node/app
COPY ["package.json", "yarn.lock", "./"]
RUN yarn install --production
# the following aren't needed, as they can be accomplished by volumes with docker-compose, instead of making a new image layer:
#COPY ./src .
#CMD ["node", "server.js"]