Skip to content

Instantly share code, notes, and snippets.

@dennbagas
Last active April 28, 2020 05:26
Show Gist options
  • Save dennbagas/20025a973384ee620b5262f6e3ec9b51 to your computer and use it in GitHub Desktop.
Save dennbagas/20025a973384ee620b5262f6e3ec9b51 to your computer and use it in GitHub Desktop.
Dockerfile example
# Create node image
FROM node:lts-alpine
# specify the workdir
WORKDIR /app
# copy the files
COPY . /app
# install dependencies
RUN npm install
# Expose port 3000
EXPOSE 3000
# run
CMD ["node", "index.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment