-
-
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:22.22@sha256:f3730b32628892a22dfa85e96750e83ab5f3e85c6170915e19110c134ab649e8 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:8bf843248d91ab446871ff7b4ebe24144e9685bce47eec3f316de5bbd0bd6ddd
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