summaryrefslogtreecommitdiff
path: root/replme2/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'replme2/Dockerfile')
-rw-r--r--replme2/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/replme2/Dockerfile b/replme2/Dockerfile
new file mode 100644
index 0000000..e4e88ba
--- /dev/null
+++ b/replme2/Dockerfile
@@ -0,0 +1,22 @@
+FROM ubuntu:20.10
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get update && apt-get install -y \
+ python3-dev python3-pip python3-setuptools
+
+RUN useradd -d /home/ctf/ -m -p ctf -s /bin/bash ctf
+RUN echo "ctf:ctf" | chpasswd
+
+ENV APP_HOME /app
+RUN mkdir ${APP_HOME}
+WORKDIR /home/ctf/${APP_HOME}
+
+COPY ./app .
+RUN pip3 install --no-cache-dir -r requirements.txt
+
+RUN chown -R root:root /home/ctf
+
+USER ctf
+CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8090", "replme:app"]
+EXPOSE 8090