Skip to content

Commit dba9afd

Browse files
committed
Fix oneshot service
1 parent cb524f8 commit dba9afd

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ ENV S6_KEEP_ENV=1
6868
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
6969
ENV S6_VERBOSITY=1
7070

71+
WORKDIR /app
72+
7173
COPY src ./src
74+
COPY alembic.ini ./alembic.ini
75+
COPY alembic ./alembic
7276
COPY --from=build-server-deps /venv /venv
7377
COPY --from=build-frontend /tmp/frontend/dist ./frontend/dist
7478
ENV PATH="/venv/bin:$PATH"

s6/pre-migrate/run

Lines changed: 0 additions & 4 deletions
This file was deleted.

s6/pre-migrate/up

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/bin/sh -c "cd /app && python3 -m alembic upgrade head"

0 commit comments

Comments
 (0)