glebby/Dockerfile
Paul Brinkmeier 9cd3803b61
All checks were successful
continuous-integration/drone/push Build is passing
Fix up dockerfile
2023-01-19 02:43:34 +01:00

21 lines
504 B
Docker

FROM node:19.4-alpine AS frontend
ARG server_url
RUN test -n "${server_url}"
COPY glebby-client /glebby-client
WORKDIR /glebby-client
RUN npm install
ENV VITE_GLEBBY_SERVER_URL=${server_url}
RUN npx vite build --outDir static
FROM python:3.11-alpine
COPY glebby-server /glebby-server
WORKDIR /glebby-server
RUN pip install -r requirements.txt
RUN pip install hypercorn
COPY --from=frontend /glebby-client/static /glebby-server/glebby/static
CMD ["hypercorn", "--bind", "0.0.0.0:5000", "glebby:app"]