Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix: add docke_entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
storopoli committed Jul 5, 2024
1 parent 883a3f9 commit e49fbbc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mysql:8.0-debian@sha256:1579fe3a97a436cc10824fc771a07fcedc92213e7ab7604eb5d2976ca419abc8
FROM mysql:8

ENV MYSQL_USER=ulabelbase
ENV MYSQL_DATABASE=labelbase
Expand Down Expand Up @@ -42,3 +42,4 @@ RUN pip install --no-cache-dir --break-system-packages -r /app/requirements.txt

COPY ./run.sh /app/run.sh
RUN chmod +x /app/run.sh

11 changes: 11 additions & 0 deletions docker_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

echo "Running mysql"
mysqld &

echo "Running Labelbase"
/app/run.sh &

echo "Running nginx"
nginx -g 'daemon off;'

2 changes: 1 addition & 1 deletion manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ assets:
main:
type: docker
image: main
entrypoint: "/app/run.sh"
entrypoint: "docker_entrypoint.sh"
args: []
mounts:
main: /root
Expand Down

0 comments on commit e49fbbc

Please sign in to comment.