Skip to content

Commit 2fe39cc

Browse files
committed
fix(docker): update Dockerfile and .dockerignore for improved structure and clarity
1 parent 88d4aed commit 2fe39cc

2 files changed

Lines changed: 31 additions & 10 deletions

File tree

.dockerignore

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
node_modules
1+
# Dependencies
2+
node_modules
3+
4+
# Local build/cache artifacts
5+
.astro
6+
dist
7+
8+
# Environment files
9+
.env
10+
.env.*
11+
12+
# Repository/editor metadata
13+
.git
14+
.github
15+
.vscode
16+
.idea
17+
18+
# Documentation
19+
CODE_OF_CONDUCT.md
20+
README.md
21+
LICENSE
22+
23+
# Local development / CI helpers
24+
docker-compose.yml

Dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:26 AS build
1+
FROM node:26-slim AS build
22

33
WORKDIR /app
44

@@ -14,14 +14,12 @@ COPY . .
1414
ARG DIRECTUS_URL
1515
ARG PUBLIC_SCRUMLR_SERVER_URL
1616

17-
RUN --mount=type=secret,id=directus_token,required=true sh -c '\
18-
DIRECTUS_TOKEN_CLEAN="$(tr -d "\r\n" < /run/secrets/directus_token)" && \
19-
env \
20-
DIRECTUS_URL="$DIRECTUS_URL" \
21-
DIRECTUS_TOKEN="$DIRECTUS_TOKEN_CLEAN" \
22-
PUBLIC_SCRUMLR_SERVER_URL="$PUBLIC_SCRUMLR_SERVER_URL" \
23-
pnpm run build \
24-
'
17+
RUN --mount=type=secret,id=directus_token,required=true \
18+
DIRECTUS_URL="$DIRECTUS_URL" \
19+
DIRECTUS_TOKEN="$(tr -d "\r\n" < /run/secrets/directus_token)" \
20+
PUBLIC_SCRUMLR_SERVER_URL="$PUBLIC_SCRUMLR_SERVER_URL" \
21+
pnpm run build
22+
2523

2624
FROM nginx:alpine AS runtime
2725

0 commit comments

Comments
 (0)