|
|
e9155b5169
|
feat: add initial Docker Compose configuration and environment variables
|
2025-07-25 09:15:33 -05:00 |
|
|
|
3a79f9de5f
|
fix: remove caching options from Docker build step
Build and Push Docker Image / build-and-push (push) Successful in 1m39s
|
2025-07-25 09:02:46 -05:00 |
|
|
|
9175898bf3
|
fix: update pip and setuptools installation in Dockerfile
Build and Push Docker Image / build-and-push (push) Failing after 2m45s
|
2025-07-25 08:58:25 -05:00 |
|
|
|
d844f74834
|
fix: docker command not found
Build and Push Docker Image / build-and-push (push) Failing after 1m13s
|
2025-07-25 08:54:55 -05:00 |
|
|
|
ee3e694f4d
|
Add Gitea Actions CI/CD workflow and update README with setup instructions
Build and Push Docker Image / build-and-push (push) Failing after 1m53s
|
2025-07-25 08:49:47 -05:00 |
|
|
|
7497a96a6e
|
Update Dockerfile to correct git clone URL for ivatar repository
|
2025-07-25 08:49:37 -05:00 |
|
Bastian Dietrich
|
4106e0984d
|
Aktualisieren Dockerfile
|
2022-09-19 04:20:05 +02:00 |
|
Bastian Dietrich
|
7c1167da92
|
Aktualisieren Dockerfile
|
2022-09-19 04:18:19 +02:00 |
|
Bastian Dietrich
|
74a3a35da1
|
Aktualisieren Dockerfile
|
2022-09-19 04:16:29 +02:00 |
|
Bastian Dietrich
|
b8997a2221
|
Aktualisieren Dockerfile, entrypoint.sh
|
2022-09-19 04:15:48 +02:00 |
|
Bastian Dietrich
|
491bd5fa2e
|
Aktualisieren entrypoint.sh
|
2022-09-19 04:07:48 +02:00 |
|
Bastian Dietrich
|
bd47af2968
|
Aktualisieren README.md
|
2022-02-05 19:25:03 +01:00 |
|
Bastian Dietrich
|
19d32ecc7a
|
Aktualisieren README.md
|
2022-02-05 19:19:46 +01:00 |
|
Bastian Dietrich
|
d596aec6f5
|
[from now] 2022/02/05 18:35:35
diff --git a/Dockerfile b/Dockerfile
index 38bbf73..452f6ff 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,13 +1,20 @@
-FROM python:latest
+FROM python:alpine
+
+WORKDIR /ivatar
+
+RUN apk add --no-cache --virtual build-deps build-base gcc python2-dev python3-dev musl-dev git && \
+ apk add --no-cache jpeg-dev openldap-dev libffi-dev mariadb-dev zlib-dev
+RUN echo 'INPUT ( libldap.so )' > /usr/lib/libldap_r.so
+
+RUN pip install --upgrade pip setuptools==57.5.0
+RUN pip install 2to3 pillow
-WORKDIR /opt/venv
RUN git clone https://git.linux-kernel.at/oliver/ivatar.git .
+RUN pip install -r requirements.txt
-ENV VIRTUAL_ENV=/opt/venv
-RUN python3 -m venv $VIRTUAL_ENV
-ENV PATH="$VIRTUAL_ENV/bin:$PATH"
+RUN apk del build-deps && pip cache purge
-RUN /opt/venv/bin/python3 -m pip install --upgrade pip
-RUN pip install pillow && pip install -r requirements.txt
+COPY entrypoint.sh .
-CMD ["python", "manage.py runserver 0:8080"]
+EXPOSE 8080
+CMD ["/bin/ash", "entrypoint.sh"]
diff --git a/entrypoint.sh b/entrypoint.sh
new file mode 100644
index 0000000..4befdea
--- /dev/null
+++ b/entrypoint.sh
@@ -0,0 +1,4 @@
+#!/bin/ash
+
+python ./manage.py migrate
+python ./manage.py runserver 0:8080
\ No newline at end of file
|
2022-02-05 18:35:35 +01:00 |
|
Bastian Dietrich
|
ae05f2ab17
|
Aktualisieren Dockerfile, .gitlab-ci.yml
|
2022-02-05 17:00:17 +01:00 |
|