caddy take 2

This commit is contained in:
hay-kot 2021-02-11 20:30:39 -09:00
commit a7d09adeb3
2 changed files with 7 additions and 2 deletions

View file

@ -35,4 +35,7 @@ COPY --from=build-stage /app/dist /app/dist
RUN rm -rf /app/test /app/.temp
VOLUME [ "/app/data/" ]
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]
RUN chmod +x run.sh
CMD script.sh
# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]

View file

@ -1,3 +1,5 @@
#!/bin/sh
## Migrations
# TODO
@ -5,4 +7,4 @@
caddy start --config ./Caddyfile
## Start API
uvicorn app:app --host 0.0.0.0 --port 80
uvicorn app:app --host 0.0.0.0 --port 9000