Skip to content

Instantly share code, notes, and snippets.

@deven96
Created August 10, 2021 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deven96/31559f1d4f1f9693107e1f47fe5b2f79 to your computer and use it in GitHub Desktop.
Save deven96/31559f1d4f1f9693107e1f47fe5b2f79 to your computer and use it in GitHub Desktop.
A bad dockerfile
# pull official base image
FROM node:13.12.0-alpine
# set working directory to /app
WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
# copy project to /app
COPY project/ ./
# install dependencies
RUN npm install --silent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment