-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
46 lines (32 loc) · 996 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
FROM binhex/arch-base:latest
LABEL org.opencontainers.image.authors="binhex"
LABEL org.opencontainers.image.source="https://github.com/binhex/arch-int-gui"
# release tag name from buildx arg
ARG RELEASETAG
# arch from buildx --platform, e.g. amd64
ARG TARGETARCH
# additional files
##################
# add supervisor conf file for app
ADD build/*.conf /etc/supervisor/conf.d/
# add install bash script
ADD build/root/*.sh /root/
# add bash script to run app
ADD run/nobody/*.sh /usr/local/bin/
# add pre-configured config files for nobody
ADD config/nobody/ /home/nobody/.build/
# install app
#############
# make executable and run bash scripts to install app
RUN chmod +x /root/*.sh && \
/bin/bash /root/install.sh "${RELEASETAG}" "${TARGETARCH}"
# docker settings
#################
# env
#####
# set environment variables for user nobody
ENV HOME=/home/nobody
# set environment variable for terminal
ENV TERM=xterm
# set environment variables for language
ENV LANG=en_GB.UTF-8