Skip to content

Instantly share code, notes, and snippets.

@masious
Created September 5, 2023 09:44
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 masious/b229bae77a89fe3d5c36717f5a4e606f to your computer and use it in GitHub Desktop.
Save masious/b229bae77a89fe3d5c36717f5a4e606f to your computer and use it in GitHub Desktop.
Github Actions example: Dockerfile
FROM node:16-alpine as build
WORKDIR /app
COPY package.json yarn.lock /app/
RUN yarn
COPY src /app/src
COPY public /app/public
COPY index.html vite.config.js .env /app/
RUN yarn build
FROM nginx:stable-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist/ /usr/share/nginx/html/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment