From 5ea16c738396e9a07954b95d03ba69d06c2b640d Mon Sep 17 00:00:00 2001 From: suricatingss Date: Fri, 5 Dec 2025 00:32:12 +0000 Subject: [PATCH] remove volume --- dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dockerfile b/dockerfile index c32c5ba..ea231ab 100644 --- a/dockerfile +++ b/dockerfile @@ -2,22 +2,24 @@ # You still need to install the project on your machine and build it. # Only then you run this docker file -# 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 +# 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 --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=3001 myapp:latest FROM node:22-alpine WORKDIR /app # Copy the build's result -COPY .output/ /app/ +COPY .output/ . # Change the port and host ENV PORT=3000