diff --git a/.gitignore b/.gitignore index a4b82db05af62f9fe6f184978d4de424e1b8d712..7f3812e9b6abb4dd26b25ac53dd91efd659b5844 100644 --- a/.gitignore +++ b/.gitignore @@ -151,3 +151,4 @@ wedding/ wishlist/ trips/ /static/core/css/output.css +/media/* diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml deleted file mode 100644 index f4488f6a08986a9ea146716a7d65ca1689839876..0000000000000000000000000000000000000000 --- a/.onedev-buildspec.yml +++ /dev/null @@ -1,37 +0,0 @@ -version: 25 -jobs: -- name: Git Sync Push - steps: - - !PushRepository - name: Push to gitlab.fachschaften.org - remoteUrl: https://gitlab.fachschaften.org/tobiasff3200/django-core.git - userName: Tobias - passwordSecret: GitLab.Fachschaften.org_Sync_Token - force: false - condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL - triggers: - - !BranchUpdateTrigger {} - - !TagCreateTrigger {} - retryCondition: never - maxRetries: 3 - retryDelay: 30 - timeout: 3600 -- name: Git Sync Pull - steps: - - !PullRepository - name: Pull from gitlab.fachschaften.org - remoteUrl: https://gitlab.fachschaften.org/tobiasff3200/django-core.git - syncToChildProject: false - userName: Tobias - passwordSecret: GitLab.Fachschaften.org_Sync_Token - refs: refs/heads/* refs/tags/* - withLfs: true - force: false - condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL - triggers: - - !ScheduleTrigger - cronExpression: 0 0 7/12 * * ? * - retryCondition: never - maxRetries: 3 - retryDelay: 30 - timeout: 3600 diff --git a/Dockerfile b/Dockerfile index a95df261e823522ec24d4f29fd01d6a6407df1c8..ffee6dfed555ff1e1cfe56e9b3b3cadc6ed16131 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,10 @@ FROM python:3.12 WORKDIR /app COPY requirements.txt requirements.txt -RUN pip install -r requirements.txt -RUN rm requirements.txt +RUN pip install --no-cache-dir -r requirements.txt COPY . /app -RUN mkdir -p /app/db/ -RUN chmod +x /app/start.sh -EXPOSE 8000 +RUN mkdir -p /app/db/ && chmod +x /app/start.sh && rm requirements.txt && chown -R 1000:1000 /app USER 1000 +EXPOSE 8000 ENTRYPOINT ["./start.sh"] diff --git a/__init__py b/__init__py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/start.sh b/start.sh old mode 100644 new mode 100755