-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from it-at-m/dockerify
Docker instead of azure, Multiple language models
- Loading branch information
Showing
73 changed files
with
1,474 additions
and
1,843 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,8 @@ | ||
.git* | ||
**/*.pyc | ||
.venv/ | ||
/tests | ||
/notebooks | ||
/infra | ||
*.ipynb | ||
**/node_modules |
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
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
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,24 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM node:19-alpine AS builder | ||
|
||
ENV GENERATE_SOURCEMAP=false | ||
ENV NODE_OPTIONS=--max_old_space_size=4096 | ||
WORKDIR /build | ||
COPY app/ . | ||
WORKDIR /build/frontend | ||
RUN npm install | ||
RUN npm run build | ||
|
||
FROM python:3.12 | ||
WORKDIR /code | ||
COPY --from=builder /build/backend . | ||
|
||
ARG fromconfig="./config/default.json" | ||
COPY $fromconfig /code/config.json | ||
COPY "./config/base.json" /code/base.json | ||
|
||
RUN pip install --no-cache-dir --upgrade -r requirements.txt | ||
|
||
EXPOSE 8000 | ||
CMD ["gunicorn","main:app"] |
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
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
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
Oops, something went wrong.