Created
September 5, 2023 09:44
-
-
Save masious/b229bae77a89fe3d5c36717f5a4e606f to your computer and use it in GitHub Desktop.
Github Actions example: Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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