aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-10-15 23:55:13 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-10-16 00:23:06 +0200
commitb22b51009c8cbfcb39fc301ac0f675edf2ef5c92 (patch)
treedb96b4c01a957fe19c3215500896d87ed2228d70 /Dockerfile
parentfrontend: fix Docker builds (diff)
downloadcgitize-b22b51009c8cbfcb39fc301ac0f675edf2ef5c92.tar.gz
cgitize-b22b51009c8cbfcb39fc301ac0f675edf2ef5c92.zip
move Dockerfile to docker/
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile28
1 files changed, 0 insertions, 28 deletions
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 9b9a8f6..0000000
--- a/Dockerfile
+++ /dev/null
@@ -1,28 +0,0 @@
-FROM alpine:3.15 AS base
-
-FROM base AS build
-
-RUN apk add --no-cache gcc libffi-dev make musl-dev python3-dev py3-pip
-
-COPY ["requirements.txt", "/tmp/"]
-RUN pip3 install --no-cache-dir --target=/deps -r /tmp/requirements.txt
-
-FROM base
-
-LABEL maintainer="Egor Tensin <Egor.Tensin@gmail.com>"
-
-RUN apk add --no-cache bash git openssh-client python3 tini
-
-COPY --from=build ["/deps", "/deps/"]
-ENV PYTHONPATH="/deps"
-
-ARG ssh_sock_dir=/
-ARG ssh_sock_path="$ssh_sock_dir/ssh-agent.sock"
-ENV SSH_AUTH_SOCK "$ssh_sock_path"
-
-COPY ["docker/entrypoint.sh", "/"]
-COPY ["cgitize/", "/usr/src/cgitize/"]
-WORKDIR /usr/src
-
-ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]
-CMD ["python3", "-m", "cgitize.main"]