Skip to content

Commit

Permalink
update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Oct 27, 2024
1 parent 9d34e37 commit a58fbb6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 44 deletions.
6 changes: 0 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.git
screenshots
src
.gitignore
.prettierignore
.prettierrc
Expand All @@ -9,9 +8,4 @@ LICENSE
README.md
directurl.md
docker-compose.yml
favicon.ico
dev-server.js
package.json
yarn.lock
postcss.config.js
webpack.config.js
38 changes: 0 additions & 38 deletions Dockerfile

This file was deleted.

14 changes: 14 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:20-alpine3.19 AS node-deps
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn

FROM node-deps AS node-build
COPY --from=node-deps /app /app
COPY webpack.config.js postcss.config.js .
COPY src src
RUN yarn build

FROM nginx:1.27-alpine AS webui
COPY --from=node-build /app/public /usr/share/nginx/html
COPY favicon.ico /usr/share/nginx/html

0 comments on commit a58fbb6

Please sign in to comment.