Skip to content

Commit

Permalink
fix: Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowtter committed Jan 5, 2024
1 parent dadd82c commit 60d799f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion 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"]
2 changes: 1 addition & 1 deletion 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

0 comments on commit 60d799f

Please sign in to comment.