Skip to content

Instantly share code, notes, and snippets.

@Dirk94
Last active August 4, 2020 14:32
Show Gist options
  • Save Dirk94/084a9ebd919e78a2435ed60e361555ef to your computer and use it in GitHub Desktop.
Save Dirk94/084a9ebd919e78a2435ed60e361555ef to your computer and use it in GitHub Desktop.
FROM node:12-slim
# Create an app directory in the docker
WORKDIR /app
# Copy the package.json and package-lock.json.
COPY package*.json ./
# Install production dependencies.
RUN npm install --only=production
# Copy local code to the container image.
COPY . ./
# Run the server
CMD node index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment