added config
Some checks failed
Build and Push Docker Image / Build image (push) Has been cancelled

This commit is contained in:
2025-04-09 02:39:33 +03:00
parent 392bfcccaa
commit e81b7abd1a
7 changed files with 767 additions and 723 deletions

View File

@@ -1,6 +1,6 @@
FROM node:alpine
FROM node:alpine as builder
EXPOSE 3000
WORKDIR /app
COPY package.json .
@@ -9,9 +9,13 @@ COPY tsconfig.json .
RUN npm install
COPY --chmod=111 startup.sh .
COPY public public
COPY src src
ENTRYPOINT [ "/usr/bin/env", "./startup.sh" ]
RUN npm run build
FROM node:alpine
COPY --from=builder /app/build /opt/server
WORKDIR /opt/server
ENTRYPOINT [ "npx", "-y" , "serve", "-s", "/opt/server" ]