-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 667 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 667 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
25
26
27
28
29
30
FROM ghcr.io/trueforge-org/node:22.22.1@sha256:f3730b32628892a22dfa85e96750e83ab5f3e85c6170915e19110c134ab649e8
# set version label
ARG VERSION
ARG TARGETARCH
USER root
# environment settings
ENV HOME="/app"
RUN \
echo "**** install build packages ****" && \
apt-get update && apt-get install -y --no-install-recommends \
build-essential && \
echo "**** install SyncLounge ****" && \
npm install -g --omit=dev synclounge@"$VERSION" && \
npm prune --omit=dev && \
echo "**** cleanup ****" && \
apt-get autoremove -y && \
rm -rf \
$HOME/.cache \
/tmp/*
# copy local files
USER apps
COPY --chmod=0755 . /
WORKDIR /config
VOLUME /config