Files

30 lines
560 B
Docker
Raw Permalink Normal View History

2023-12-29 03:07:07 +00:00
FROM node:20
WORKDIR /build
COPY src/frontend/package*.json .
RUN rm -rf node_modules
RUN rm -rf build
RUN npm install
COPY src/frontend/. .
RUN npm run build
# Thanks https://stackoverflow.com/q/76988450
FROM python:3.10-slim
WORKDIR /app
2024-12-02 17:02:23 -05:00
# Install git
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
2023-12-29 03:07:07 +00:00
COPY src/api/requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY --from=0 /build/build /app/build
# COPY src/api/src/.env .env
COPY src/api/src .
EXPOSE 80
# ENV PORT=80
CMD [ "python3", "main.py"]