Spaces:
Build error
Build error
Commit ·
f6d59b2
1
Parent(s): 759001a
Explicitly installing curl and exposing port in Dockerfile
Browse files- .dockerignore +2 -1
- .gitignore +1 -1
- Dockerfile +6 -1
.dockerignore
CHANGED
|
@@ -24,4 +24,5 @@ db/*
|
|
| 24 |
experiments/*
|
| 25 |
model/*
|
| 26 |
build_deps/*
|
| 27 |
-
build_deps_old/*
|
|
|
|
|
|
| 24 |
experiments/*
|
| 25 |
model/*
|
| 26 |
build_deps/*
|
| 27 |
+
build_deps_old/*
|
| 28 |
+
data_text_search_amplify_app/*
|
.gitignore
CHANGED
|
@@ -7,7 +7,6 @@
|
|
| 7 |
*.parquet
|
| 8 |
*.json
|
| 9 |
*.bat
|
| 10 |
-
*.pkl
|
| 11 |
*.spec
|
| 12 |
*.ipynb
|
| 13 |
*.npy
|
|
@@ -27,4 +26,5 @@ experiments/*
|
|
| 27 |
model/*
|
| 28 |
build_deps/*
|
| 29 |
build_deps_old/*
|
|
|
|
| 30 |
AWS errors 19-03.txt
|
|
|
|
| 7 |
*.parquet
|
| 8 |
*.json
|
| 9 |
*.bat
|
|
|
|
| 10 |
*.spec
|
| 11 |
*.ipynb
|
| 12 |
*.npy
|
|
|
|
| 26 |
model/*
|
| 27 |
build_deps/*
|
| 28 |
build_deps_old/*
|
| 29 |
+
data_text_search_amplify_app/*
|
| 30 |
AWS errors 19-03.txt
|
Dockerfile
CHANGED
|
@@ -5,7 +5,10 @@ FROM public.ecr.aws/docker/library/python:3.11.9-slim-bookworm
|
|
| 5 |
# COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.8.3 /lambda-adapter /opt/extensions/lambda-adapter
|
| 6 |
|
| 7 |
# Install wget
|
| 8 |
-
RUN apt-get update &&
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# Create a directory for the model
|
| 11 |
RUN mkdir /model
|
|
@@ -30,6 +33,8 @@ RUN useradd -m -u 1000 user
|
|
| 30 |
# Change ownership of /home/user directory
|
| 31 |
RUN chown -R user:user /home/user
|
| 32 |
|
|
|
|
|
|
|
| 33 |
# Make output folder
|
| 34 |
RUN mkdir -p /home/user/app/output && chown -R user:user /home/user/app/output
|
| 35 |
RUN mkdir -p /home/user/.cache/huggingface/hub && chown -R user:user /home/user/.cache/huggingface/hub
|
|
|
|
| 5 |
# COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.8.3 /lambda-adapter /opt/extensions/lambda-adapter
|
| 6 |
|
| 7 |
# Install wget
|
| 8 |
+
RUN apt-get update && \
|
| 9 |
+
apt-get install -y wget \
|
| 10 |
+
apt-get install -y curl \
|
| 11 |
+
apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# Create a directory for the model
|
| 14 |
RUN mkdir /model
|
|
|
|
| 33 |
# Change ownership of /home/user directory
|
| 34 |
RUN chown -R user:user /home/user
|
| 35 |
|
| 36 |
+
EXPOSE 7860
|
| 37 |
+
|
| 38 |
# Make output folder
|
| 39 |
RUN mkdir -p /home/user/app/output && chown -R user:user /home/user/app/output
|
| 40 |
RUN mkdir -p /home/user/.cache/huggingface/hub && chown -R user:user /home/user/.cache/huggingface/hub
|