-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9a89f1
commit 2005a62
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM --platform=linux/amd64 mambaorg/micromamba:1.5.3 | ||
|
||
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/environment.yml | ||
|
||
RUN micromamba install -y -n base -f /tmp/environment.yml && \ | ||
micromamba clean --all --yes | ||
|
||
WORKDIR /app | ||
|
||
COPY --chown=$MAMBA_USER:$MAMBA_USER parma_analytics /app/parma_analytics | ||
|
||
ENV GITHUB_TOKEN=$GITHUB_TOKEN | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh"] | ||
CMD ["uvicorn", "parma_analytics.api:app", "--host", "0.0.0.0", "--port", "8080"] |