forked from mmtaee/ocserv-users-management
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.Dev
31 lines (25 loc) · 858 Bytes
/
Dockerfile.Dev
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
FROM ubuntu:20.04
ARG HOST
ARG DEBUG
ARG CORS_ALLOWED
RUN apt update
RUN apt install -y --no-install-recommends ocserv gnutls-bin build-essential
RUN apt install -y --no-install-recommends gettext-base iptables cron openssl sudo
RUN apt install -y --no-install-recommends python3 python3-dev python3-pip
COPY configs/services_pack_dev.sh /services.sh
COPY configs/entrypoint_ocserv.sh /entrypoint.sh
RUN chmod +x /services.sh /entrypoint.sh
RUN echo net.ipv4.ip_forward=1 | tee -a /etc/sysctl.conf && sysctl -p
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
RUN mkdir -p /app
WORKDIR /app
COPY back-end/requirements.txt .
RUN mkdir -p db
RUN python3 -m pip install -r requirements.txt
WORKDIR /etc/ocserv
EXPOSE 443/tcp 443/udp
VOLUME ["/etc/ocserv", "/app"]
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/services.sh"]