-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable beta ico patch node version on Dockerfile
- Loading branch information
Showing
5 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,6 @@ assets/ | |
docker-compose.yml | ||
docker.yml | ||
Dockerfile | ||
Dockerfile_dev | ||
LICENSE | ||
README.md | ||
README.md |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
FROM node:lts-alpine as build-stage | ||
FROM node:16-alpine | ||
WORKDIR /app | ||
ENV VUE_APP_API_URL='http://<STRAPI_URL>/graphql' | ||
WORKDIR /app | ||
|
||
COPY package.json ./ | ||
RUN npm install -g http-server | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
RUN npm run build | ||
|
||
EXPOSE 8080 | ||
CMD [ "http-server", "dist" ] | ||
|
||
# étape de production | ||
FROM nginx:stable-alpine as production-stage | ||
COPY --from=build-stage /app/dist /usr/share/nginx/html | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] | ||
# PATCH WIP for regenerator-runtime | ||
#FROM nginx:stable-alpine as production-stage | ||
#COPY --from=build-stage /app/dist /usr/share/nginx/html | ||
#COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
#EXPOSE 80 | ||
#CMD ["nginx", "-g", "daemon off;"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM node:16-alpine | ||
|
||
ENV VUE_APP_API_URL='http://<STRAPI_URL>/graphql' | ||
WORKDIR /app | ||
|
||
RUN npm install -g http-server | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
RUN npm run build | ||
|
||
EXPOSE 8080 | ||
CMD [ "http-server", "dist" ] | ||
#CMD [ "npm", "run", "serve" ] |
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
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