-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (31 loc) · 953 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
FROM ubuntu as spinbuilder
WORKDIR /root/
RUN apt-get update \
&& apt-get install -y git build-essential byacc \
&& git clone https://github.com/nimble-code/Spin.git \
--branch version-6.5.2 --depth 1 \
&& (cd Spin/Src; make)
FROM ubuntu
LABEL maintainer="[email protected]"
ARG TZ=UTC
ARG USER=spin
ARG GROUP=spin
ARG PASS=spin
ENV HOME=/home/${USER}
COPY --from=spinbuilder /root/Spin/Src/spin /usr/local/bin/
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata \
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& dpkg-reconfigure --frontend noninteractive tzdata \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
sudo \
git \
build-essential \
&& rm -rf /var/lib/apt/lists/* \
&& groupadd ${GROUP} \
&& useradd -g ${GROUP} -m ${USER} \
&& (echo "${USER}:${PASS}" | chpasswd) \
&& gpasswd -a ${USER} sudo
USER ${USER}
WORKDIR ${HOME}
ENTRYPOINT ["/bin/bash"]