-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 1.36 KB
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM ghcr.io/trueforge-org/python:3.13.12@sha256:cc5a5a300743bf95669130b982874279d999d8ac2691788c9c83f9493adb5bdf
ARG VERSION
ARG YARN_VERSION
USER root
ARG TARGETARCH
ARG TARGETARCH=${TARGETARCH/arm64/arm64}
ARG TARGETARCH=${TARGETARCH/amd64/x64}
ENV HOME=/tmp/nodehome
COPY --from=ghcr.io/trueforge-org/node:24.14.1@sha256:d823f0ad31f49d9944d39857b673a0aef31e9d6edbff53b855d7a1f1b63512f6 /usr/local/bin/node /usr/local/bin/
COPY --from=ghcr.io/trueforge-org/node:24.14.1@sha256:d823f0ad31f49d9944d39857b673a0aef31e9d6edbff53b855d7a1f1b63512f6 /usr/local/lib/node_modules/ /usr/local/lib/node_modules/
COPY --from=ghcr.io/trueforge-org/node:24.14.1@sha256:d823f0ad31f49d9944d39857b673a0aef31e9d6edbff53b855d7a1f1b63512f6 /YARN_VERSION.txt /YARN_VERSION.txt
COPY --from=ghcr.io/trueforge-org/node:24.14.1@sha256:d823f0ad31f49d9944d39857b673a0aef31e9d6edbff53b855d7a1f1b63512f6 /opt/ /opthold/
RUN YARN_VERSION=$(cat /YARN_VERSION.txt) && \
ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \
ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx && \
mv /opthold/yarn-v$YARN_VERSION /opt/yarn-v$YARN_VERSION \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && \
rm -rf /opthold/
USER apps
COPY --chmod=0755 . /
CMD [ "node" ]