pushing the dockerfile since building locally seems to be broken
This commit is contained in:
parent
10255b7c72
commit
a159138162
2 changed files with 3 additions and 2 deletions
|
@ -9,6 +9,7 @@ RUN cd /temp/dev && bun install --frozen-lockfile
|
||||||
RUN mkdir -p /temp/prod
|
RUN mkdir -p /temp/prod
|
||||||
COPY package.json bun.lockb /temp/prod/
|
COPY package.json bun.lockb /temp/prod/
|
||||||
RUN cd /temp/prod && bun install --frozen-lockfile --production
|
RUN cd /temp/prod && bun install --frozen-lockfile --production
|
||||||
|
RUN echo "SESSION_SECRET=$(openssl rand -base64 15)" > .env
|
||||||
|
|
||||||
FROM base AS prerelease
|
FROM base AS prerelease
|
||||||
COPY --from=install /temp/dev/node_modules node_modules
|
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
|
COPY --from=prerelease /usr/src/app/.output .output
|
||||||
|
|
||||||
USER bun
|
USER bun
|
||||||
EXPOSE 3000/tcp
|
EXPOSE 3000
|
||||||
ENTRYPOINT [ "bun", "run", "start" ]
|
ENTRYPOINT [ "bun", "run", "start" ]
|
|
@ -42,7 +42,7 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = {
|
||||||
|
|
||||||
ingress: {
|
ingress: {
|
||||||
external: true
|
external: true
|
||||||
targetPort: 8080
|
targetPort: 3000
|
||||||
transport: 'http2'
|
transport: 'http2'
|
||||||
allowInsecure: false
|
allowInsecure: false
|
||||||
traffic: [
|
traffic: [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue