diff --git a/Dockerfile b/Dockerfile index 37adbed..3269e10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ FROM node:22-slim WORKDIR /app +EXPOSE 3000 COPY package.json ./ RUN npm install COPY . . +RUN npm run build CMD ["npm", "run", "start"] diff --git a/Makefile b/Makefile index fc07ae4..c226d11 100644 --- a/Makefile +++ b/Makefile @@ -4,4 +4,4 @@ build: docker build -t games . start: - docker run -p $(PORT):3000 games + sudo docker run -p $(PORT):3000 games