From 97f9b5ae44d28524cf088b33617e4556dc6f0a72 Mon Sep 17 00:00:00 2001 From: jd-apprentice Date: Sat, 30 Nov 2024 15:15:12 -0300 Subject: [PATCH] feat(bump): update november 2024 --- Dockerfile | 8 +++----- docker-compose.yml | 5 +++-- vite.config.ts | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index e4710e9..cf78c80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -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 . @@ -9,10 +9,8 @@ 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 diff --git a/docker-compose.yml b/docker-compose.yml index 6fc7ad0..6f921a3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/vite.config.ts b/vite.config.ts index cfb6c47..67e4d5f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,10 +16,10 @@ export default defineConfig({ }, server: { host: '0.0.0.0', - port: 3525, + port: 3500, open: true, }, preview: { - port: 3500, + port: 3525, }, })