frontend/Dockerfile
ACoolName e81b7abd1a
Some checks failed
Build and Push Docker Image / Build image (push) Has been cancelled
added config
2025-04-09 02:39:33 +03:00

22 lines
332 B
Docker

FROM node:alpine as builder
EXPOSE 3000
WORKDIR /app
COPY package.json .
COPY package-lock.json .
COPY tsconfig.json .
RUN npm install
COPY public public
COPY src src
RUN npm run build
FROM node:alpine
COPY --from=builder /app/build /opt/server
WORKDIR /opt/server
ENTRYPOINT [ "npx", "-y" , "serve", "-s", "/opt/server" ]