mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
feat: Add Dockerfile
This commit is contained in:
parent
953dc40bc4
commit
fd1eb463bb
16
Dockerfile
Normal file
16
Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user