summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorRobert Griebl <[email protected]>2022-07-29 23:18:37 +0200
committerRobert Griebl <[email protected]>2023-08-04 12:59:01 +0000
commitb3665620377a06f7b7a012e2ae7b69d222fae435 (patch)
tree8a012e3ffd952197401f79a396e55e3850fee5ce /Dockerfile
parent7259d1a839a698e68bc4a7020a63d2aca79a5ec6 (diff)
Port to python 3 and django 4.0.6HEADdev
PLEASE NOTE: This project is not maintained anymore. It was ported to a Qt 6 cmake setup and a more modern Django and Python version to at least keep it usable for legacy projects. For non-production use-cases, please switch to the new appman-package-server available in the Qt Application Manager starting with version 6.7. Task-number: AUTOSUITE-1368 Change-Id: Idc4f2490a2a4399c03fce761250f4b5ac2612a45 Reviewed-by: Dominik Holland <[email protected]>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile45
1 files changed, 45 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..1c0cbc5
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,45 @@
+
+FROM debian:bullseye-slim
+MAINTAINER Robert Griebl <[email protected]>
+
+ENV LC_ALL="C.UTF-8"
+
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ python3-pip \
+ python3-magic \
+ python3-m2crypto
+
+RUN rm -rf /var/lib/apt/lists/*
+
+COPY requirements.txt /
+RUN pip3 install -r requirements.txt
+
+RUN mkdir /server
+COPY manage.py /server
+RUN chmod 755 ./server/manage.py
+COPY appstore/ /server/appstore
+COPY store/ /server/store
+
+RUN mkdir /data
+VOLUME /data
+
+ENV APPSTORE_DATA_PATH=/data
+ENV APPSTORE_STORE_SIGN_PKCS12_CERTIFICATE /data/certificates/store.p12
+ENV APPSTORE_DEV_VERIFY_CA_CERTIFICATES /data/certificates/ca.crt,/data/certificates/devca.crt
+
+# You can also set these environment variables:
+## ENV APPSTORE_PLATFORM_ID NEPTUNE3
+## ENV APPSTORE_PLATFORM_VERSION 2
+## ENV APPSTORE_DOWNLOAD_EXPIRY 10
+## ENV APPSTORE_BIND_TO_DEVICE_ID 1
+## ENV APPSTORE_NO_SECURITY 1
+## ENV APPSTORE_STORE_SIGN_PKCS12_CERTIFICATE certificates/store.p12
+## ENV APPSTORE_STORE_SIGN_PKCS12_PASSWORD password
+## ENV APPSTORE_DEV_VERIFY_CA_CERTIFICATES certificates/ca.crt,certificates/devca.crt
+
+
+COPY docker-entrypoint.sh /
+ENTRYPOINT [ "/docker-entrypoint.sh" ]
+CMD [ "runserver", "0.0.0.0:8080" ]
+
+EXPOSE 8080