Skip to content

Instantly share code, notes, and snippets.

@greaveselliott
Last active November 16, 2019 23:04
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 greaveselliott/6464122ac2ed6f2633dd7ff8b25fae39 to your computer and use it in GitHub Desktop.
Save greaveselliott/6464122ac2ed6f2633dd7ff8b25fae39 to your computer and use it in GitHub Desktop.
Using the alpine long term support node image
# Use the Node LTS image
# Build step named 'builder'
FROM node:lts-alpine AS builder
# Set the default working directory
WORKDIR /root
# Copying the project repo to the builder images default working directory /root
COPY . .
# Installing JS dependencies
RUN yarn
# Building the app
RUN yarn build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment