Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
KYLN24 authored Jul 2, 2024
1 parent 3306999 commit 6de4cf8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
FROM python:latest as builder

COPY ./dx_static_convert_toml_to_json.py .
COPY ./public/tmp_wait_for_json_editor.toml .
COPY * .
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 ./public /usr/share/nginx/html/

EXPOSE 80

0 comments on commit 6de4cf8

Please sign in to comment.