-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
52 lines (43 loc) · 922 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
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM alpine:3.18
# set version label
ARG BUILD_DATE
ARG VERSION
ARG WEBAPP_VERSION
LABEL build_version="netboot.xyz version: ${VERSION} Build-date: ${BUILD_DATE}"
LABEL maintainer="antonym"
RUN \
apk upgrade --no-cache && \
apk add --no-cache --virtual=build-dependencies \
nodejs npm && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
bash \
busybox \
curl \
git \
jq \
nghttp2-dev \
nginx \
nodejs \
shadow \
sudo \
supervisor \
syslog-ng \
tar \
tftp-hpa
RUN \
groupmod -g 1000 users && \
useradd -u 911 -U -d /config -s /bin/false nbxyz && \
usermod -G users nbxyz && \
mkdir /app \
/config \
/defaults
COPY . /app
RUN \
npm install --prefix /app
ENV TFTPD_OPTS=''
EXPOSE 3000
EXPOSE 8080
COPY root/ /
# default command
CMD ["sh","/start.sh"]