mirror of https://github.com/Bunsly/JobSpy
19 lines
355 B
Docker
19 lines
355 B
Docker
FROM python:3.10-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y jq build-essential && \
|
|
pip install --no-cache-dir -r requirements.txt && \
|
|
apt-get remove -y build-essential && \
|
|
apt-get autoremove -y && \
|
|
apt-get clean
|
|
|
|
EXPOSE 8000
|
|
|
|
ENV PORT=8000
|
|
|
|
CMD sh -c "uvicorn main:app --host 0.0.0.0 --port $PORT"
|