diff --git a/crispy-api/Dockerfile b/crispy-api/Dockerfile index d16906b..db832b3 100644 --- a/crispy-api/Dockerfile +++ b/crispy-api/Dockerfile @@ -1,7 +1,13 @@ FROM python:3.10-slim WORKDIR /app +RUN apt-get -y update +RUN apt-get install ffmpeg -y + COPY requirements.txt . RUN pip install -r requirements.txt COPY api api -EXPOSE 8000 +COPY assets assets +COPY dataset dataset +COPY settings.json settings.json +EXPOSE 7821 CMD ["python", "-m", "api"] diff --git a/crispy-frontend/Dockerfile b/crispy-frontend/Dockerfile index 9288456..0e9e64d 100644 --- a/crispy-frontend/Dockerfile +++ b/crispy-frontend/Dockerfile @@ -1,7 +1,7 @@ FROM node:18.6 AS build WORKDIR /crispy-frontend -RUN npm install && npm run build COPY . . +RUN npm install && npm run build FROM nginx:1.23 COPY --from=build /crispy-frontend/public /usr/share/nginx/html EXPOSE 80