This commit is contained in:
parent
c267cd4f08
commit
5aa3f15a42
@ -20,7 +20,7 @@ pipeline:
|
||||
# from_secret: registry_password
|
||||
# registry:
|
||||
# from_secret: registry
|
||||
# dockerfile: ./backend/Dockerfile
|
||||
# dockerfile: Dockerfile.backend
|
||||
# platforms: linux/amd64
|
||||
# #when:
|
||||
# # path: "backend/**"
|
||||
@ -39,7 +39,7 @@ pipeline:
|
||||
from_secret: registry_password
|
||||
registry:
|
||||
from_secret: registry
|
||||
dockerfile: ./frontend/Dockerfile
|
||||
dockerfile: Dockerfile.frontend
|
||||
platforms: linux/amd64
|
||||
#when:
|
||||
# path: "frontend/**"
|
||||
|
@ -1,13 +1,13 @@
|
||||
FROM python:3.8
|
||||
WORKDIR /app
|
||||
|
||||
ADD requirements.txt /app/requirements.txt
|
||||
ADD ./backend/requirements.txt /app/requirements.txt
|
||||
|
||||
RUN pip install --upgrade -r requirements.txt
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
COPY ./ /app
|
||||
COPY ./backend/ /app
|
||||
|
||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|
||||
|
7
Dockerfile.Frontend
Normal file
7
Dockerfile.Frontend
Normal file
@ -0,0 +1,7 @@
|
||||
FROM nginx:latest
|
||||
|
||||
COPY ./frontend/index.html /usr/share/nginx/html/index.html
|
||||
COPY ./frontend/index.css /usr/share/nginx/html/index.css
|
||||
COPY ./frontend/index.js /usr/share/nginx/html/index.js
|
||||
|
||||
HEALTHCHECK --interval=1m --timeout=3s CMD curl --fail http://localhost/ || exit 1
|
@ -1,7 +0,0 @@
|
||||
FROM nginx:latest
|
||||
|
||||
COPY ./index.html /usr/share/nginx/html/index.html
|
||||
COPY ./index.css /usr/share/nginx/html/index.css
|
||||
COPY ./index.js /usr/share/nginx/html/index.js
|
||||
|
||||
HEALTHCHECK --interval=1m --timeout=3s CMD curl --fail http://localhost/ || exit 1
|
Loading…
Reference in New Issue
Block a user