Skip to content

Instantly share code, notes, and snippets.

@slightlytyler
Created November 21, 2018 22:06
Show Gist options
  • Select an option

  • Save slightlytyler/3d5bc391d16a3d4236f3a596d35ee9c2 to your computer and use it in GitHub Desktop.

Select an option

Save slightlytyler/3d5bc391d16a3d4236f3a596d35ee9c2 to your computer and use it in GitHub Desktop.
Dockerfile for slightlytyler/docker-ui-demo
FROM node:11.1.0-alpine AS node_base
FROM node_base as deps
WORKDIR /usr/app
COPY package.json /usr/app/package.json
COPY yarn.lock /usr/app/yarn.lock
RUN yarn install
FROM node_base as build
WORKDIR /usr/app
COPY --from=deps /usr/app/node_modules /usr/app/node_modules
COPY . /usr/app
RUN yarn build
FROM scratch AS ui
COPY --from=build /usr/app/dist /usr/app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment