-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 721 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ghcr.io/trueforge-org/node:24.14@sha256:d823f0ad31f49d9944d39857b673a0aef31e9d6edbff53b855d7a1f1b63512f6 AS builder
ARG VERSION
WORKDIR /tmp
ENV HOME=/tmp
USER root
ADD https://github.com/CorentinTh/it-tools.git#${VERSION} .
RUN npm install -g corepack@latest \
&& corepack enable \
&& corepack prepare pnpm@latest --activate \
&& pnpm install --prefer-offline \
&& pnpm build
FROM ghcr.io/trueforge-org/nginx:1.24.0@sha256:e4f6fdcb15f3210f59bc30a6ca11eedc3827ff7e95e66e8c575d6e1a13d47561
USER root
COPY --from=builder --chown=568:568 /tmp/dist/ /usr/share/nginx/html
# Copy configuration files into container
COPY --chmod=755 ./ /
USER apps
COPY --chmod=0755 . /
WORKDIR /usr/share/nginx/html