File size: 518 Bytes
73ed481
 
 
 
 
 
 
 
c2d66b5
 
 
 
790c9f5
c2d66b5
73ed481
c2d66b5
49bf3a4
dac6580
bb94ae1
d9766e9
 
c2d66b5
790c9f5
73ed481
d800701
bb94ae1
73ed481
49bf3a4
 
790c9f5
73ed481
790c9f5
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
FROM ubuntu:22.04

RUN apt-get update && apt-get install -y \
    openssh-server \
    dante-server \
    curl \
    && rm -rf /var/lib/apt/lists/*

# Create required dirs
RUN mkdir -p /var/run/sshd

# Copy configs with root access
COPY ssh-config/sshd_config /etc/ssh/sshd_config
RUN chmod 600 /etc/ssh/sshd_config

# Set user to root (important!)





# Copy rest of the app
WORKDIR /app
COPY . /app
RUN chmod +x /app/entrypoint.sh
RUN chmod -R 777 /app


USER root
EXPOSE 22 1080

ENTRYPOINT ["/app/entrypoint.sh"]