test ssr
All checks were successful
Deploy / build (push) Successful in 2m20s

This commit is contained in:
Никита Круглицкий 2025-09-26 01:32:37 +06:00
parent 9e07e4917a
commit 2b75aaf7bf

View File

@ -1,7 +1,7 @@
FROM node:22 AS build FROM node:22-alpine AS build
WORKDIR /app WORKDIR /app
COPY package.json ./ RUN corepack enable
COPY yarn.lock ./ COPY package.json yarn.lock ./
RUN yarn install RUN yarn install
COPY . . COPY . .
RUN yarn build RUN yarn build
@ -10,5 +10,5 @@ FROM node:22-alpine
WORKDIR /app WORKDIR /app
COPY --from=build /app/.output/ ./ COPY --from=build /app/.output/ ./
ENV PORT=80 ENV PORT=80
EXPOSE 80
CMD ["node", "/app/server/index.mjs"] CMD ["node", "/app/server/index.mjs"]
#COPY --from=build /app/dist /usr/share/nginx/html