Spaces:
Sleeping
Sleeping
File size: 1,429 Bytes
9d471ed 7266825 9d471ed 7266825 9d471ed 7266825 9d471ed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# See supported architectures for python image
# https://hub.docker.com/_/python
# Ex: arm64v8/python:3.11
FROM python:3.11-bookworm
LABEL maintainer="Luis Rodrigues <luisrodriguesphd@gmail.com>"
LABEL version="0.0.1"
LABEL name="ResumeWorth"
LABEL description="Discover your market value with ResumeWorth receiving a salary estimate through an advanced AI analysis"
ARG REQUIREMENTS_PATH="./requirements.in"
ENV REQUIREMENTS_PATH=$REQUIREMENTS_PATH
ARG HF_HOME=".cache/huggingface/hub"
ENV HF_HOME=$HF_HOME
ARG ENTRYPOINT_PATH="./entrypoint.sh"
ENV ENTRYPOINT_PATH=$ENTRYPOINT_PATH
# Create the /code/ directory a ser permissions rwe
RUN mkdir -p /code/&& \
chmod -R 777 /code/
# Set the working directory to /code/
WORKDIR /code
# Create a virtual environment in the directory /venv
RUN python -m venv venv
# Activate the virtual environment by adding it to the PATH environment variable
ENV PATH="/venv/bin:$PATH"
RUN apt update && \
python -m ensurepip --upgrade && \
python -m pip install --upgrade pip
COPY $REQUIREMENTS_PATH /code/requirements.txt
RUN pip install --no-cache-dir -r ./requirements.txt
RUN mkdir -p $HF_HOME && \
chmod -R 777 $HF_HOME && \
export TRANSFORMERS_CACHE=$HF_HOME && \
export HF_HOME=$HF_HOME
COPY . .
RUN pip install -e . && \
python src/resume_worth/pipelines/data_indexing/pipeline.py && \
chmod +x $ENTRYPOINT_PATH
ENTRYPOINT $ENTRYPOINT_PATH
|