-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4680f88
commit 0687d8f
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
FROM ubuntu:xenial | ||
FROM ubuntu:focal | ||
|
||
LABEL org.opencontainers.image.authors="benjamin.c.burns@gmail.com" | ||
|
||
RUN apt-get update && apt-get install -y python2 python2-dev iptables dnsmasq python-pip uml-utilities net-tools build-essential && apt-get clean | ||
RUN apt-get update && apt-get install -y python2 python2-dev iptables dnsmasq uml-utilities net-tools build-essential curl && apt-get clean | ||
|
||
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py && python2 get-pip.py && rm get-pip.py | ||
|
||
COPY docker-image-config/docker-startup.sh switchedrelay.py limiter.py requirements.txt /opt/websockproxy/ | ||
COPY docker-image-config/dnsmasq/interface docker-image-config/dnsmasq/dhcp /etc/dnsmasq.d/ | ||
|
||
WORKDIR /opt/websockproxy/ | ||
|
||
RUN python2 -m pip install -r /opt/websockproxy/requirements.txt | ||
RUN pip2 install -r /opt/websockproxy/requirements.txt | ||
|
||
EXPOSE 80 | ||
|
||
CMD /opt/websockproxy/docker-startup.sh | ||
|
||
|