swapping ports
This commit is contained in:
@@ -19,7 +19,7 @@ RUN npm run build && npm prune --omit=dev
|
||||
# Runtime stage: the built server, production dependencies and the migrations.
|
||||
FROM base
|
||||
ENV NODE_ENV=production \
|
||||
PORT=3000 \
|
||||
PORT=3288 \
|
||||
DATABASE_PATH=/data/sync.db
|
||||
COPY --from=build /app/package.json ./
|
||||
COPY --from=build /app/node_modules ./node_modules
|
||||
@@ -28,7 +28,7 @@ COPY --from=build /app/drizzle ./drizzle
|
||||
RUN mkdir /data && chown node:node /data
|
||||
USER node
|
||||
VOLUME /data
|
||||
EXPOSE 3000
|
||||
EXPOSE 3288
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
|
||||
CMD ["node", "-e", "fetch(`http://127.0.0.1:${process.env.PORT}/healthz`).then((r) => process.exit(r.ok ? 0 : 1), () => process.exit(1))"]
|
||||
CMD ["node", "build"]
|
||||
|
||||
Reference in New Issue
Block a user