summaryrefslogtreecommitdiff
path: root/Containerfile
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-12-28 22:20:03 +0100
committerSefa Eyeoglu <contact@scrumplex.net>2024-04-24 16:56:23 +0200
commitbe4317cf9d982018b4ff86375d680826ffacb62f (patch)
tree0dfc5bdcfc5e151d1e7a96bb2f9d87b73f4e5235 /Containerfile
parentb643707c30466c0718e1f693e8063a00f0c369b5 (diff)
downloadProject-Tick-be4317cf9d982018b4ff86375d680826ffacb62f.tar.gz
Project-Tick-be4317cf9d982018b4ff86375d680826ffacb62f.zip
refactor!: package using Nix
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'Containerfile')
-rw-r--r--Containerfile31
1 files changed, 0 insertions, 31 deletions
diff --git a/Containerfile b/Containerfile
deleted file mode 100644
index 68e22b68c7..0000000000
--- a/Containerfile
+++ /dev/null
@@ -1,31 +0,0 @@
-FROM python:3.11.5-alpine3.17
-ARG UID=1337
-ARG GID=1337
-
-RUN pip install pipenv \
- && apk add --no-cache rsync cronie git openssh bash
-
-WORKDIR /app
-COPY Pipfile Pipfile.lock .
-RUN pipenv install --system --deploy
-
-# add our cronjob
-COPY docker/update.cron /etc/cron.d/meta-update
-RUN chmod 644 /etc/cron.d/meta-update \
- && crontab /etc/cron.d/meta-update
-
-# install entrypoint
-COPY docker/entrypoint.sh /usr/local/bin/entrypoint
-RUN chmod +x /usr/local/bin/entrypoint
-
-RUN addgroup -g $GID user \
- && adduser --disabled-password --ingroup user --uid $UID user \
- && mkdir -p /home/user/.ssh \
- && ssh-keyscan github.com > /home/user/.ssh/known_hosts \
- && mkdir -p /app \
- && chown -R $UID:$GID /app /home/user/.ssh
-
-COPY . .
-
-ENTRYPOINT ["/usr/local/bin/entrypoint"]
-CMD ["update"]