matteo-the-prestige/Dockerfile

21 lines
440 B
Docker
Raw Normal View History

2021-01-13 12:56:00 +01:00
# - Build stage 1: frontend (simmadome/ directory)
FROM node:alpine AS frontend
WORKDIR /app
COPY simmadome/package.json simmadome/package-lock.json ./
RUN npm install
COPY simmadome/ ./
RUN npm run build
# - Build stage 2: backend (Python)
2021-01-01 14:23:18 -05:00
FROM python:3.8
EXPOSE 5000
WORKDIR /app
2021-01-13 12:56:00 +01:00
COPY requirements.txt .
2021-01-01 14:23:18 -05:00
RUN pip install -r requirements.txt
2021-01-13 12:56:00 +01:00
COPY . ./
COPY --from=frontend /app/build/ simmadome/build/
2021-01-01 14:23:18 -05:00
2021-01-01 14:24:34 -05:00
CMD ["python", "the_prestige.py"]