Skip to content

Commit

Permalink
fix docker image build for sveltekit server (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
josefaidt authored Jan 30, 2024
1 parent e3d3fb7 commit e718db8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm-store \
FROM fetcher as builder
ARG APP_NAME="@aws-amplify/discord-bot-frontend"
ENV APP_NAME=${APP_NAME}
# expose arguments for VITE environment variables
ARG VITE_HOST=http://localhost:3000
ARG VITE_NEXTAUTH_URL=http://localhost:3000
ARG VITE_DISCORD_GUILD_ID=976838371383083068
WORKDIR /workspace
COPY . .
RUN --mount=type=secret,id=env,required=false,target=/workspace/.env \
Expand Down

0 comments on commit e718db8

Please sign in to comment.