feat: Add Dockerfile

This commit is contained in:
Enin Kaduk 2022-10-06 08:09:19 +02:00
parent 953dc40bc4
commit fd1eb463bb

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"]