Skip to content

Instantly share code, notes, and snippets.

@butlerx
Created February 14, 2019 15:41
Show Gist options
  • Save butlerx/3dc7fbd0187a5f4337d60553e0ffe234 to your computer and use it in GitHub Desktop.
Save butlerx/3dc7fbd0187a5f4337d60553e0ffe234 to your computer and use it in GitHub Desktop.
FROM node:alpine
ADD . /app
WORKDIR /app
RUN ["yarn"]
RUN ["yarn", "build"]
FROM nginx:alpine
ARG VERSION=1.0.0
LABEL version=$VERSION
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=0 /app/src /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment