Compare commits

...

2 Commits

Author SHA1 Message Date
suricatingss
731273b1b0 link correction 2025-12-05 00:19:31 +00:00
suricatingss
a644256ccb change in dockerfile 2025-12-05 00:19:19 +00:00
3 changed files with 11 additions and 21 deletions

View File

@@ -1,4 +0,0 @@
node_modules
.git
.nuxt
.idea

View File

@@ -15,7 +15,7 @@ const nav : NavigationMenuItem[][] = [[
}, {
label: 'Contacts',
icon: 'i-lucide-users',
to: "/inbox"
to: "/contacts"
}]];
/*[
{

View File

@@ -1,27 +1,21 @@
FROM node:22-alpine AS build
WORKDIR /app
# 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
#RUN corepack enable
# 1. pnpm i (this project uses pnpm by default, to use npm, delete 'pnpm-lock.yaml')
# 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)
# Copy package.json
COPY package.json .
# You should have the image now !
# Now you just need to create the container
# Install dependencies
RUN npm i --prod
# Here is an example command for creating a container
# Copy the entire project
COPY . ./
# Build the project
RUN npm run build
# Build Stage 2
# sudo docker run -d --name myappcontainer --network host -e PORT=3001 myapp:latest
FROM node:22-alpine
WORKDIR /app
# Only `.output` folder is needed from the build stage
COPY --from=build /app/.output/ ./
# Change the port and host
ENV PORT=3000