-
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.
downgrad version vue-cli-plugin-apollo because 'regeneratorRuntime is…
… not defined'
- Loading branch information
Showing
3 changed files
with
12 additions
and
13 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 |
---|---|---|
@@ -1,20 +1,19 @@ | ||
FROM node:16-alpine | ||
WORKDIR /app | ||
FROM node:16 as build-stage | ||
|
||
ENV VUE_APP_API_URL='http://<STRAPI_URL>/graphql' | ||
WORKDIR /app | ||
|
||
RUN npm install -g http-server | ||
COPY package*.json ./ | ||
COPY package.json ./ | ||
RUN npm install | ||
COPY . . | ||
RUN npm run build | ||
|
||
EXPOSE 8080 | ||
CMD [ "http-server", "dist" ] | ||
#EXPOSE 8080 | ||
#CMD [ "npm", "run", "serve" ] | ||
|
||
# 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;"] | ||
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
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