From a1591381625175784a590203bb4b1405726ac292 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 18 Nov 2024 11:38:08 +0100 Subject: [PATCH] pushing the dockerfile since building locally seems to be broken --- Dockerfile | 3 ++- infrastructure/app.bicep | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1949db3..150f1a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ RUN cd /temp/dev && bun install --frozen-lockfile RUN mkdir -p /temp/prod COPY package.json bun.lockb /temp/prod/ RUN cd /temp/prod && bun install --frozen-lockfile --production +RUN echo "SESSION_SECRET=$(openssl rand -base64 15)" > .env FROM base AS prerelease COPY --from=install /temp/dev/node_modules node_modules @@ -28,5 +29,5 @@ COPY --from=prerelease /usr/src/app/.vinxi .vinxi COPY --from=prerelease /usr/src/app/.output .output USER bun -EXPOSE 3000/tcp +EXPOSE 3000 ENTRYPOINT [ "bun", "run", "start" ] \ No newline at end of file diff --git a/infrastructure/app.bicep b/infrastructure/app.bicep index 5e70018..1ba6e83 100644 --- a/infrastructure/app.bicep +++ b/infrastructure/app.bicep @@ -42,7 +42,7 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = { ingress: { external: true - targetPort: 8080 + targetPort: 3000 transport: 'http2' allowInsecure: false traffic: [