summaryrefslogtreecommitdiff
path: root/replme/Dockerfile
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.org>2021-04-06 12:23:00 -0400
committerJakob L. Kreuze <zerodaysfordays@sdf.org>2021-04-06 12:25:17 -0400
commit983cd29f5a2c3d9cd1d6a9c4f343adcffe54f88c (patch)
tree395f4bf2dfe097d9d09413ad1b805765b2e7eae0 /replme/Dockerfile
Initial import.HEADmaster
Diffstat (limited to 'replme/Dockerfile')
-rw-r--r--replme/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/replme/Dockerfile b/replme/Dockerfile
new file mode 100644
index 0000000..e6349dd
--- /dev/null
+++ b/replme/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:8085", "replme:app"]
+EXPOSE 8085