-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
46 lines (42 loc) · 1.63 KB
/
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 opensuse/leap:15.4
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
# install
RUN zypper -n ar https://download.opensuse.org/repositories/openSUSE:/Tools/15.4/openSUSE:Tools.repo && \
zypper -n ar https://download.opensuse.org/repositories/devel:/languages:/go/15.4/devel:languages:go.repo && \
zypper -n ar https://download.opensuse.org/repositories/devel:/languages:/erlang/15.4/devel:languages:erlang.repo && \
zypper -n --gpg-auto-import-keys refresh --force --services && \
zypper install -y build \
elixir \
go1.18 \
gzip \
helm \
obs-service-obs_scm \
obs-service-obs_scm-common \
obs-service-recompress \
obs-service-set_version \
obs-service-source_validator \
obs-service-verify_file \
obs-service-format_spec_file \
obs-service-tar_scm \
obs-service-download_files \
obs-service-node_modules \
osc \
sudo \
tar \
unzip \
vim \
yq \
wget \
make \
openssh
ARG USER_NAME=osc
ARG GROUP_NAME=$USER_NAME
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID $GROUP_NAME && useradd -m -g $USER_NAME -u $UID $USER_NAME
USER $USER_NAME
ENV HOME /home/$USER_NAME
WORKDIR $HOME
COPY scripts /scripts
COPY --chown=$UID:$GID oscrc $HOME/.config/osc/oscrc