-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/DanXi-Dev/DanXi-Backend
- Loading branch information
Showing
5 changed files
with
16 additions
and
13 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 |
---|---|---|
@@ -1,14 +1,12 @@ | ||
FROM python:latest as builder | ||
|
||
COPY ./dx_static_convert_toml_to_json.py . | ||
COPY ./public/tmp_wait_for_json_editor.toml . | ||
WORKDIR /builder | ||
COPY . /builder | ||
RUN apt-get update && apt-get install -y python3-pip \ | ||
&& pip install toml \ | ||
&& python -u ./dx_static_convert_toml_to_json.py | ||
&& bash build_static.sh | ||
|
||
FROM nginx:alpine | ||
|
||
COPY ./public /usr/share/nginx/html/ | ||
COPY --from=builder swift.json /usr/share/nginx/html/ | ||
COPY --from=builder /builder/public /usr/share/nginx/html/ | ||
|
||
EXPOSE 80 |
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,2 @@ | ||
pip install toml | ||
python -u ./dx_static_convert_toml_to_json.py |
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