Last active
May 22, 2021 04:15
-
-
Save pablohdzvizcarra/8c0c06e61ed923d75f96ec85702cd233 to your computer and use it in GitHub Desktop.
vue app with deploy yo nginx server
This file contains hidden or 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
# build | |
FROM node:lts-alpine3.13 as dist | |
# set workdir in to container | |
WORKDIR /app | |
COPY package.json ./ | |
COPY package-lock.json ./ | |
RUN npm ci --silent | |
RUN npm install | |
COPY . ./ | |
RUN npm run build | |
# production environment | |
FROM nginx:1.19.7-alpine | |
COPY --from=dist /app/dist /usr/share/nginx/html | |
EXPOSE 80 | |
CMD ["nginx", "-g", "daemon off;"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment