From b28c167b91b12b8f562f74d07070356cfbebda50 Mon Sep 17 00:00:00 2001 From: bvn13 Date: Sun, 10 Nov 2024 14:39:06 +0300 Subject: [PATCH] Add Dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..18a1abd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3.9 + +# Install python3 +RUN apt-get update +RUN apt-get install -y python3 +RUN apt-get install -y git + +# Invalidate cache +ARG CACHEBUST=1 + +# Copy html +RUN git clone http://gitea.bvn13.me/bvn13/bvn13-me.git /app +RUN ls -la / +RUN ls -la /app +RUN ls -la /app/src +WORKDIR /app/src + +# Run http server on port 8080 +EXPOSE 8080 +CMD ["python3", "-m", "http.server", "8080"]