forked from polka_billy/porridger
Deploy ready
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM node:18-alpine as builder
|
||||
WORKDIR /src
|
||||
COPY ./front/package.json front/package-lock.json .
|
||||
RUN npm ci
|
||||
COPY front .
|
||||
RUN npm run build
|
||||
|
||||
FROM python:3-slim
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
||||
COPY ./app ./app
|
||||
COPY --from=builder /src/dist ./front/dist
|
||||
CMD uvicorn app.main:app --host 0.0.0.0 --port 80
|
Reference in New Issue
Block a user