it works ... somehow (?)

This commit is contained in:
2026-01-16 20:55:05 +00:00
parent 280e7bd077
commit b89a8d76b6
3 changed files with 53 additions and 10 deletions

View File

@@ -1,6 +1,8 @@
FROM node:22-alpine AS build
WORKDIR /app
RUN sysctl -w net.ipv6.conf.all.disable_ipv6=1 || true
RUN corepack enable
COPY . /app/
@@ -10,14 +12,20 @@ RUN pnpm i
RUN pnpm build
FROM node:22-alpine
WORKDIR /app
# Only `.output` folder is needed from the build stage
COPY --from=build /app/.output/ ./
# Change the port and host
ENV PORT=80
ENV PORT=3000
ENV HOST=0.0.0.0
EXPOSE 80
EXPOSE 3000
ENV DOWNLOAD_FOLDER=/tmp/downloads
VOLUME ["/tmp/downloads"]
ENV FASTAPI_URL=http://127.0.0.1:8000
CMD ["node", "/app/server/index.mjs"]