forked from workadventure/workadventure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
32 lines (29 loc) · 1.04 KB
/
dockerfile
File metadata and controls
32 lines (29 loc) · 1.04 KB
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
FROM debian
ENV SHELL /bin/bash
ADD . .
RUN chmod +x startup.sh
RUN apt -y update
RUN apt -y install docker
RUN apt -y install docker-compose
RUN apt -y install apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
RUN echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt -y update
RUN apt -y install docker-ce docker-ce-cli containerd.io
RUN apt -y install sudo
RUN apt -y install iptables sudo -y
RUN adduser --disabled-password --gecos "" user1
RUN echo "user1:pwd" | chpasswd
RUN adduser user1 sudo
RUN echo pwd | su user1
RUN sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
RUN export DOCKER_CLIENT_TIMEOUT=120
RUN export COMPOSE_HTTP_TIMEOUT=120
RUN sudo systemctl enable docker
EXPOSE 80