docker fix

This commit is contained in:
2025-07-31 00:36:21 -04:00
parent 4efc60861b
commit 44e7586baf
2 changed files with 3 additions and 1 deletions

View File

@@ -1,10 +1,12 @@
FROM node:22-slim FROM node:22-slim
WORKDIR /app WORKDIR /app
EXPOSE 3000
COPY package.json ./ COPY package.json ./
RUN npm install RUN npm install
COPY . . COPY . .
RUN npm run build
CMD ["npm", "run", "start"] CMD ["npm", "run", "start"]

View File

@@ -4,4 +4,4 @@ build:
docker build -t games . docker build -t games .
start: start:
docker run -p $(PORT):3000 games sudo docker run -p $(PORT):3000 games