Skip to content

Instantly share code, notes, and snippets.

@simonjcarr
Created August 17, 2020 19:38
Show Gist options
  • Select an option

  • Save simonjcarr/c7f9a5745e7d4a21886722e0df6d6b5d to your computer and use it in GitHub Desktop.

Select an option

Save simonjcarr/c7f9a5745e7d4a21886722e0df6d6b5d to your computer and use it in GitHub Desktop.
FROM node:12-alpine
RUN npm install -g http-server
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . ./
RUN npm run build
EXPOSE 8080
CMD [ "http-server", "dist" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment