-
-
Save arthurgeek/c7f81f728d6aef1cf6750f8a692d71f7 to your computer and use it in GitHub Desktop.
Revisions
-
arthurgeek revised this gist
Oct 24, 2023 . 2 changed files with 5 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,15 @@ FROM node:20-alpine as development WORKDIR /app COPY package*.json . RUN npm install COPY . . EXPOSE 4321 CMD [ "npm", "run", "start" ] FROM development as builder WORKDIR /app RUN npm run build FROM nginx:1.25.2-alpine-slim as production COPY --from=builder /app/dist /usr/local/apache2/htdocs/ EXPOSE 80 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 charactersOriginal file line number Diff line number Diff line change @@ -7,3 +7,5 @@ services: - "3000:4321" volumes: - "./:/app" - "/app/.tscache" - "/app/node_modules" -
arthurgeek revised this gist
Oct 24, 2023 . 3 changed files with 14 additions and 9 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ node_modules 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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,15 @@ FROM node:20 as development WORKDIR /app COPY package*.json . RUN npm install COPY . . EXPOSE 3000 CMD [ "npm", "run", "start" ] FROM development as builder WORKDIR /app RUN npm run build FROM httpd:2.4-alpine as production COPY --from=builder /app/dist /usr/local/apache2/htdocs/ EXPOSE 80 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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,9 @@ services: web: build: context: . target: development ports: - "3000:4321" volumes: - "./:/app" -
enriquesaid revised this gist
Oct 24, 2023 . 1 changed file with 11 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ services: web: build: . command: npm start ports: - "3000:4321" volumes: - "./:/app" - "/app/.tscache" - "/app/dist" - "/app/node_modules" -
enriquesaid created this gist
Oct 24, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ FROM node:20-alpine as build WORKDIR /app COPY . . RUN npm install RUN npm run build FROM httpd:2.4 as runtime COPY --from=build /app/dist /usr/local/apache2/htdocs/ EXPOSE 80