diff --git a/Dockerfile b/Dockerfile index 6a12a3c..1f564ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /usr/src/app COPY package.json pnpm-lock.yaml ./ RUN pnpm install COPY . . -RUN pnpm run tsc +RUN pnpm run build ENV PORT=80 EXPOSE 80 CMD [ "pnpm", "start" ] \ No newline at end of file diff --git a/package.json b/package.json index 4c5fe92..1f9e437 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "start": "node dist/index.js", "tsc": "tsc -w", + "build": "tsc", "dev": "nodemon dist/index.js" }, "author": "",