Skip to content

Commit

Permalink
fix container build
Browse files Browse the repository at this point in the history
  • Loading branch information
rroohhh committed Jan 9, 2025
1 parent 6ea3abb commit c994087
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
worker/transcribee_worker/.data
backend/db
backend/storage
backend/__pypackages__
worker/__pypackages__
backend/.venv
worker/.venv
frontend/node_modules/
frontend/testData
.git
packaging/Dockerfile
8 changes: 3 additions & 5 deletions packaging/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@ RUN nix-channel --update

RUN mkdir -p /app

COPY shell.nix /app
COPY flake.nix /app

WORKDIR /app

RUN nix-build shell.nix

COPY . /app/

RUN nix-shell shell.nix --command ./packaging/install_dependencies.sh
RUN nix --extra-experimental-features 'nix-command flakes' develop --command ./packaging/install_dependencies.sh

EXPOSE 5173

ENV MEDIA_URL_BASE=http://localhost:5173/

ENTRYPOINT [ "nix-shell", "shell.nix", "--command" ]
ENTRYPOINT [ "nix", "--extra-experimental-features", "'nix-command flakes'", "develop" ]

CMD [ "overmind start -f packaging/Procfile" ]

0 comments on commit c994087

Please sign in to comment.