Last active
April 27, 2020 02:51
-
-
Save JuHwon/93c212fb4cd2b8e9970762f5e37ffdff to your computer and use it in GitHub Desktop.
react-boilerplate dockerfile example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM containership/alpine-node-yarn | |
COPY internals/scripts myappname/internals/scripts | |
COPY package.json myappname/package.json | |
COPY yarn.lock myappname/yarn.lock | |
COPY build myappname/build | |
COPY server myappname/server | |
WORKDIR myappname/ | |
ENV NODE_ENV production | |
RUN yarn install --production | |
EXPOSE 3000 | |
ENTRYPOINT ["yarn", "run", "start:prod"] |
Thanks i found the solution thanks WORKDIR /home/hello
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot it works but i couldn't complete this process RUN npm install --production it return with EACCES: permission denied, access and have run the docker with
sudo docker build -t hello:hello .
is still the same thing. what do you think might go wrong.