Skip to content

Instantly share code, notes, and snippets.

@JuHwon
Last active April 27, 2020 02:51
Show Gist options
  • Save JuHwon/93c212fb4cd2b8e9970762f5e37ffdff to your computer and use it in GitHub Desktop.
Save JuHwon/93c212fb4cd2b8e9970762f5e37ffdff to your computer and use it in GitHub Desktop.
react-boilerplate dockerfile example
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"]
@Teslima02
Copy link

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