-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
39 lines (32 loc) · 874 Bytes
/
Dockerfile
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
32
33
34
35
36
37
38
39
ARG FROM_IMAGE
FROM ${FROM_IMAGE}
# Libuv 1.45.0 is affected by a kernel bug on certain kernels.
# This leads to errors where Garden tool downloading errors with ETXTBSY
# Apparently file descriptor accounting is broken when using USE_IO_URING
# on older kernels
# See also: https://github.com/libuv/libuv/pull/4141/files
# TODO: Remove this once libuv 1.47 landed in a future NodeJS version, and we upgraded to it.
ENV UV_USE_IO_URING=0
RUN apk add --no-cache \
bash \
ca-certificates \
g++ \
git \
make \
openssh-client \
python3 \
tar \
# Below are for packages such as https://www.npmjs.com/package/imagemin
autoconf \
automake \
libpng-dev \
libtool \
nasm \
util-linux \
vips-dev
RUN deluser node
RUN adduser -D -u 1000 skpr
RUN mkdir /data && chown skpr:skpr /data
WORKDIR /data
USER skpr
ENV PATH /data/node_modules/.bin:$PATH