Dockerfile 474 B

1234567891011121314151617181920212223
  1. FROM alpine AS builder
  2. RUN mkdir /src /app
  3. WORKDIR /src
  4. COPY . /src/
  5. COPY CHECKS /app/CHECKS
  6. RUN apk add --no-cache curl make gcc musl-dev libffi-dev python3 python3-dev
  7. RUN env
  8. RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/etc/poetry python3 -
  9. ENV PATH /etc/poetry/bin/:$PATH
  10. RUN poetry install
  11. RUN make run
  12. FROM nginx:1.17-alpine
  13. COPY --from=builder /src/_build /www
  14. COPY vhost.conf /etc/nginx/conf.d/default.conf
  15. COPY CHECKS /app/CHECKS
  16. EXPOSE 80