GuysRGithub
commited on
Commit
·
89c0b49
1
Parent(s):
4370859
Fix
Browse files- Dockerfile +10 -5
Dockerfile
CHANGED
@@ -1,11 +1,16 @@
|
|
1 |
-
FROM python:3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
# Set up a new user named "user" with user ID 1000
|
4 |
-
RUN
|
5 |
|
6 |
-
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
|
7 |
-
RUN apk update
|
8 |
-
RUN apk add --no-cache autossh
|
9 |
# Switch to the "user" user
|
10 |
USER user
|
11 |
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
RUN sudo apt-get install gcc make
|
4 |
+
RUN wget http://www.harding.motd.ca/autossh/autossh-1.4e.tgz
|
5 |
+
RUN tar -xf autossh-1.4e.tgz
|
6 |
+
RUN cd autossh-1.4e
|
7 |
+
RUN ./configure
|
8 |
+
RUN make
|
9 |
+
RUN sudo make install
|
10 |
|
11 |
# Set up a new user named "user" with user ID 1000
|
12 |
+
RUN useradd -m -u 1000 user
|
13 |
|
|
|
|
|
|
|
14 |
# Switch to the "user" user
|
15 |
USER user
|
16 |
|