fix: move env vars to dockerfile

This commit is contained in:
2025-01-11 05:24:45 +01:00
parent faba51af73
commit abed683eda
2 changed files with 8 additions and 10 deletions

View File

@@ -8,11 +8,6 @@ on:
branches:
- main
env:
DB_HOST: host
DB_USER: user
DB_PASSWORD: password
jobs:
build:
runs-on: ubuntu-latest

View File

@@ -6,9 +6,12 @@ COPY package.json bun.lockb ./
RUN bun install
COPY . .
RUN bun run build
ENV DB_HOST=host
ENV DB_USER=user
ENV DB_PASSWORD=password
RUN bunx drizzle-kit push
RUN bun run build
@@ -17,8 +20,8 @@ FROM oven/bun
WORKDIR /app
COPY --from=builder /app ./
EXPOSE 90
EXPOSE 3000
ENV NODE_ENV=production
CMD ["bun", "run", "preview", "--host", "--port=80"]
CMD ["bun", "build/index.js"]