changes to docker deploy

This commit is contained in:
2025-12-22 22:18:42 +00:00
parent b2b27e06fe
commit eeed7497cb
4 changed files with 952 additions and 407 deletions

View File

@@ -1,30 +1,21 @@
# This dockerfile is to turn .output into a docker image #FROM node:22-alpine AS build
# You still need to install the project on your machine and build it.
# Only then you run this docker file
# This project by default uses pnpm. #WORKDIR /app
# If you wish to use npm, delete "pnpm-lock.yaml" first.
# 1. pnpm (or npm) i # If you get GNU problems, use pnpm (or npm) i --force #COPY . ./
# 2. pnpm (or npm) run build # Sit back while it compiles
# 3. sudo docker build . -t myapp:latest (replace 'myapp' to whatever tag you wanna give your image)
# You should have the image now ! #RUN npm i --force
# Now you just need to create the container
# Here is an example command for creating a container #RUN npm run build
# sudo docker run -d --name myappcontainer --network host -e PORT=3000 myapp:latest
FROM node:22-alpine FROM node:22-alpine
WORKDIR /app WORKDIR /app
# Copy the build's result COPY .output .
COPY .output/ .
# Change the port and host
ENV PORT=3000
ENV HOST=0.0.0.0 ENV HOST=0.0.0.0
ENV PORT=3000
EXPOSE 3000 EXPOSE 3000
CMD ["node", "/app/server/index.mjs"] CMD ["node","server/index.mjs"]

30
Dockerfile.output.bak Normal file
View File

@@ -0,0 +1,30 @@
# This dockerfile is to turn .output into a docker image
# You still need to install the project on your machine and build it.
# Only then you run this docker file
# This project by default uses pnpm.
# If you wish to use npm, delete "pnpm-lock.yaml" first.
# 1. pnpm (or npm) i # If you get GNU problems, use pnpm (or npm) i --force
# 2. pnpm (or npm) run build # Sit back while it compiles
# 3. sudo docker build . -t myapp:latest (replace 'myapp' to whatever tag you wanna give your image)
# You should have the image now !
# Now you just need to create the container
# Here is an example command for creating a container
# sudo docker run -d --name myappcontainer --network host -e PORT=3000 myapp:latest
FROM node:22-alpine
WORKDIR /app
# Copy the build's result
COPY .output/ .
# Change the port and host
ENV PORT=3000
ENV HOST=0.0.0.0
EXPOSE 3000
CMD ["node", "/app/server/index.mjs"]

View File

@@ -18,7 +18,6 @@
"@tailwindcss/vite": "^4.1.17", "@tailwindcss/vite": "^4.1.17",
"@vueuse/core": "^10.0.0", "@vueuse/core": "^10.0.0",
"@vueuse/head": "github:vueuse/head", "@vueuse/head": "github:vueuse/head",
"nuxt": "^4.2.1",
"nuxt-auth-utils": "0.5.25", "nuxt-auth-utils": "0.5.25",
"nuxt-storm": "^1.1.3", "nuxt-storm": "^1.1.3",
"tailwindcss": "^4.1.17", "tailwindcss": "^4.1.17",
@@ -29,6 +28,7 @@
}, },
"devDependencies": { "devDependencies": {
"@iconify-json/lucide": "^1.2.77", "@iconify-json/lucide": "^1.2.77",
"@nuxtjs/tailwindcss": "^6.14.0" "@nuxtjs/tailwindcss": "^6.14.0",
"nuxt": "^4.2.2"
} }
} }

1300
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff