Allow changing port via env

This commit is contained in:
Lucas Winther
2026-07-10 05:38:00 +02:00
parent c2de4241a4
commit 15bf14728a
3 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -32,5 +32,6 @@ COPY --from=build /app/dist ./dist
RUN mkdir -p /app/data && chown -R bun:bun /app/data
USER bun
EXPOSE 3000
ENV PORT=3000
EXPOSE $PORT
CMD ["bun", "src/index.ts"]