There was an error while loading. Please reload this page.
1 parent 9f31431 commit ec258f7Copy full SHA for ec258f7
.dockerignore
@@ -0,0 +1,10 @@
1
+# Exclude everything
2
+*
3
+
4
+# Make exceptions for what's needed
5
+!api
6
+!pyproject.toml
7
+!main-requirements.txt
8
+!LICENSE
9
+!alembic.ini
10
+!migrations
Dockerfile
@@ -19,5 +19,6 @@ USER codejam_management
19
ARG uvicorn_extras=""
20
ENV uvicorn_extras=$uvicorn_extras
21
22
+COPY . .
23
ENTRYPOINT ["/bin/bash", "-c"]
24
CMD ["alembic upgrade head && uvicorn api.main:app --host 0.0.0.0 --port 80 $uvicorn_extras"]
0 commit comments