actions ci

This commit is contained in:
2024-11-02 20:43:00 -05:00
parent 678d6f84dc
commit 9ea6e470e2
3 changed files with 45 additions and 37 deletions

View File

@ -3,10 +3,8 @@ FROM node:22-alpine
ENV NEXT_TELEMETRY_DISABLED=1
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY . /app
RUN corepack enable
RUN yarn;
RUN yarn build;
COPY ./out /app/out
RUN npm install serve
ENV NODE_ENV=production
ENV PORT=3000
@ -14,4 +12,4 @@ ENV HOSTNAME="0.0.0.0"
EXPOSE 3000
CMD ["yarn", "serve"]
CMD ["npx", "serve", "out"]