Skip to content

Instantly share code, notes, and snippets.

@tkssharma
Created December 2, 2020 15:53
Show Gist options
  • Save tkssharma/6e8be6a9e0f0676f7435ada229694799 to your computer and use it in GitHub Desktop.
Save tkssharma/6e8be6a9e0f0676f7435ada229694799 to your computer and use it in GitHub Desktop.
FROM node:carbon
WORKDIR /usr/src/app
ARG GIT_TOKEN
COPY package.json package-lock.json .npmrc ./
RUN npm install
RUN rm -f .npmrc
# Add your source files
COPY . .
EXPOSE 3000
RUN npm run build
cmd npm run start:dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment