Skip to content

Commit 3762871

Browse files
committed
fix runtime env
1 parent 27227f1 commit 3762871

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.dockerignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ pnpm-debug.log*
3232
!.yarn/sdks
3333
!.yarn/versions
3434

35-
# custom
36-
.env
37-
.env.*
38-
3935
# docker pointless files
4036
README.md
4137
.gitignore
42-
.vscode/*
38+
.vscode/*
39+
40+
!.env.example

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ WORKDIR /build
44
COPY . /build/
55
RUN corepack enable
66
RUN yarn install --immutable
7-
RUN yarn build
7+
RUN export $(cat .env.example) && yarn build
88

99
FROM node:22-alpine3.19 AS runner
1010

1111
COPY --from=builder /build/dist /usr/local/bin/appeals
1212
HEALTHCHECK --interval=10s --timeout=3s \
1313
CMD wget --no-verbose --tries=1 --spider http://localhost:$PORT/ || exit 1
14-
CMD [ "node", "/usr/local/bin/appeals/server/entry.mjs" ]
14+
CMD [ "node", "/usr/local/bin/appeals/server/entry.mjs" ]

0 commit comments

Comments
 (0)