matteo-the-prestige/Dockerfile

21 lines
440 B
Docker
Raw Permalink Normal View History

2021-01-13 11:56:00 +00: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 19:23:18 +00:00
FROM python:3.8
EXPOSE 5000
WORKDIR /app
2021-01-13 11:56:00 +00:00
COPY requirements.txt .
2021-01-01 19:23:18 +00:00
RUN pip install -r requirements.txt
2021-01-13 11:56:00 +00:00
COPY . ./
COPY --from=frontend /app/build/ simmadome/build/
2021-01-01 19:23:18 +00:00
2021-01-01 19:24:34 +00:00
CMD ["python", "the_prestige.py"]