Update docker file
Some checks failed
Build and push image / build-containers (push) Has been cancelled
Some checks failed
Build and push image / build-containers (push) Has been cancelled
This commit is contained in:
@ -12,9 +12,17 @@ RUN uv build --package sshecret
|
|||||||
RUN uv build --package sshecret-admin
|
RUN uv build --package sshecret-admin
|
||||||
|
|
||||||
|
|
||||||
|
FROM node:lts-alpine AS frontend-build
|
||||||
|
WORKDIR /app
|
||||||
|
COPY packages/sshecret-frontend/ .
|
||||||
|
RUN npm install
|
||||||
|
RUN npm build
|
||||||
|
|
||||||
|
|
||||||
FROM python:3.13-slim-bookworm
|
FROM python:3.13-slim-bookworm
|
||||||
|
|
||||||
COPY --from=builder --chown=app:app /build/dist /opt/sshecret
|
COPY --from=builder --chown=app:app /build/dist /opt/sshecret
|
||||||
|
COPY --from=frontend-build --chown=app:app /app/dist /opt/sshecret-frontend
|
||||||
|
|
||||||
COPY packages/sshecret-admin /opt/sshecret-admin
|
COPY packages/sshecret-admin /opt/sshecret-admin
|
||||||
COPY docker/admin.entrypoint.sh /entrypoint.sh
|
COPY docker/admin.entrypoint.sh /entrypoint.sh
|
||||||
|
|||||||
@ -9,6 +9,7 @@ fail() {
|
|||||||
|
|
||||||
export SSHECRET_ADMIN_DATABASE="/opt/sshecret-admin/sshecret_admin.db"
|
export SSHECRET_ADMIN_DATABASE="/opt/sshecret-admin/sshecret_admin.db"
|
||||||
export SSHECRET_ADMIN_PASSWORD_MANAGER_DIRECTORY="/opt/sshecret-admin"
|
export SSHECRET_ADMIN_PASSWORD_MANAGER_DIRECTORY="/opt/sshecret-admin"
|
||||||
|
export SSHECRET_ADMIN_FRONTEND_DIR="/opt/sshecret-frontend"
|
||||||
|
|
||||||
alembic upgrade head
|
alembic upgrade head
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user