Skip to content

Instantly share code, notes, and snippets.

@oneteamai
Last active Jul 21, 2020
Embed
What would you like to do?
Initial Dockerfile that results in a 2.1GB image
# base image
FROM node:13.10.1-alpine
# set working directory
WORKDIR /app
COPY . .
ENV PATH /app/node_modules/.bin:$PATH
# install
COPY package.json /app/package.json
RUN apk add yarn
RUN yarn install --production
RUN yarn build
RUN yarn global add serve
# start app
CMD serve -s build -l 3000
@oneteamai
Copy link
Author

oneteamai commented Jul 20, 2020

changed name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment