Merge pull request #99 from blueprismo/new-feature

feat: Add Dockerfile
This commit is contained in:
Nicola 2022-10-21 11:17:33 +02:00 committed by GitHub
commit 9923582079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM node:16-alpine3.15
RUN apk add git
# Docker has --chown flag for COPY, but it does not expand ENV so we fallback to:
# COPY src src
# RUN sudo chown -R $USER:$USER $HOME
WORKDIR /home/node/app
COPY ./ /home/node/app
RUN chown -R node:node /home/node/app
USER node
RUN npm install
CMD ["npm", "run", "hot"]