Transformers
Dummymodel / Dockerfile
paulinergt
init-container
644971b
Raw
History Blame Contribute Delete
732 Bytes
#ARG EXOSCALE_DOCKER_REGISTRY=registry.internal.exoscale.ch
#FROM ${EXOSCALE_DOCKER_REGISTRY}/docker.io/library/ubuntu:latest
FROM ubuntu:22.04
# Install the necessary dependencies
RUN apt-get update && \
apt-get install -y \
bash \
python3 \
python3-pip \
curl \
unzip && \
rm -rf /var/lib/apt/lists/*
# Install AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip && ./aws/install
# Copy the script which downloads the model from S3
COPY download_model.sh /usr/local/bin/
# Give execution permissions to the script
RUN chmod +x /usr/local/bin/download_model.sh
# Script to run
ENTRYPOINT [ "/usr/local/bin/download_model.sh" ]