Skip to content

Commit

Permalink
feat(bump): update november 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-apprentice committed Nov 30, 2024
1 parent bda2386 commit 97f9b5a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
FROM node:alpine3.17 as build-runner
FROM node:alpine3.20 as build-runner
WORKDIR /tmp/app
COPY package*.json ./
RUN npm i --legacy-peer-deps
RUN npm ci --legacy-peer-deps
COPY src ./src
COPY public ./public
COPY tsconfig.json .
COPY vite.config.ts .
COPY index.html .
RUN npm run build

FROM node:alpine3.17 as prod-runner
FROM node:alpine3.20 as prod-runner
WORKDIR /app
COPY --from=build-runner /tmp/app/package*.json ./
RUN npm i --omit=dev --legacy-peer-deps
COPY --from=build-runner /tmp/app/dist ./dist
RUN npm i -g serve
EXPOSE 3500
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
version: '3.1'
services:
waifuland_app:
container_name: waifuland_fe_app_container
image: dyallo/waifuland-fe
build:
context: .
dockerfile: Dockerfile
restart: always
env_file:
- .env
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export default defineConfig({
},
server: {
host: '0.0.0.0',
port: 3525,
port: 3500,
open: true,
},
preview: {
port: 3500,
port: 3525,
},
})

0 comments on commit 97f9b5a

Please sign in to comment.