Skip to content
Snippets Groups Projects
Commit d4a10e6d authored by Tobias Mieves's avatar Tobias Mieves :sparkles:
Browse files

build: Optimize docker file

parent 3469ffca
No related branches found
No related tags found
No related merge requests found
---
include:
- project: tobiasff3200/ci-cd
file: .gitlab-ci.yml
......
version: 25
jobs:
- name: Git Sync Push
steps:
- !PushRepository
name: Push to gitlab.fachschaften.org
remoteUrl: https://gitlab.fachschaften.org/tobiasff3200/wishlist.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/wishlist.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: 5 4 * * * ?
retryCondition: never
maxRetries: 3
retryDelay: 30
timeout: 3600
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-ast
- id: check-json
- id: check-yaml
- id: detect-private-key
- id: pretty-format-json
args: [ --autofix ]
- id: requirements-txt-fixer
# - repo: https://github.com/pre-commit/mirrors-eslint
# rev: "v8.15.0"
# hooks:
# - id: eslint
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: "v0.950"
# hooks:
# - id: mypy
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
\ No newline at end of file
FROM registry.gitlab.fachschaften.org/tobiasff3200/django-core:v3.0.0 as core
WORKDIR /app
COPY . /app/wishlist
RUN pip install --no-cache-dir -r wishlist/requirements.txt && rm wishlist/requirements.txt
RUN sed -i 's/{{app_to_install}}/wishlist/g' core/settings.py && sed -i 's/{{app_to_install}}/wishlist/g' core/urls.py
RUN pip install --no-cache-dir -r wishlist/requirements.txt && rm wishlist/requirements.txt && sed -i 's/{{app_to_install}}/wishlist/g' core/settings.py && sed -i 's/{{app_to_install}}/wishlist/g' core/urls.py
FROM node:21 AS node
WORKDIR /app/wishlist
COPY --from=core /app /app
RUN npm ci
RUN npm run tailwind
RUN npm ci && npm run tailwind
FROM core
......
# Wunschliste
## Features:
## Features
- Eine Wunschliste für Jeden
- Es können versteckte Wünsche zu den Listen der anderen hinzufügen werden.
......
---
version: "3"
services:
wishlist:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment