Skip to content

Commit

Permalink
Setup html plugin for webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
berrydenhartog committed Feb 2, 2025
1 parent 61e4508 commit 26fcb37
Show file tree
Hide file tree
Showing 8 changed files with 740 additions and 105 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
src/vendor/
src/vendor/
dist/
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM node:20 AS build

WORKDIR /app

ENV NODE_ENV=production

COPY package.json package-lock.json webpack.config.js ./
COPY src/ ./src/

Expand All @@ -10,7 +12,7 @@ RUN npm run build

FROM nginx:1.27.3

COPY --from=build /app/src /usr/share/nginx/html
COPY --from=build /app/dist /usr/share/nginx/html

EXPOSE 80

Expand Down
Loading

0 comments on commit 26fcb37

Please sign in to comment.