File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ __pycache__
4
4
* .pyo
5
5
tests /
6
6
docs /
7
+ weaviate_data /
Original file line number Diff line number Diff line change @@ -69,7 +69,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
69
69
&& rm -rf /var/lib/apt/lists/*
70
70
71
71
# Create a non-root user
72
- RUN useradd -m -u 1000 -r codegate
72
+ RUN useradd -m -u 1000 -r codegate
73
+
74
+ # Copy backup if needed
75
+ RUN mkdir -p /tmp/weaviate_backup
76
+ # will not fail if the file does not exist
77
+ COPY weaviate_backu[p] /tmp/weaviate_backup
78
+ RUN chown -R codegate /tmp/weaviate_backup
73
79
74
80
# Set permissions for user codegate to run nginx
75
81
RUN chown -R codegate /var/lib/nginx && \
@@ -94,4 +100,4 @@ ENV PYTHONPATH=/app/src
94
100
95
101
# Set the container's default entrypoint
96
102
EXPOSE 8989
97
- ENTRYPOINT ["/app/scripts/entrypoint.sh" , "/app /weaviate_backup" , "backup" ]
103
+ ENTRYPOINT ["/app/scripts/entrypoint.sh" , "/tmp /weaviate_backup" , "backup" ]
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ build: clean test
30
30
poetry build
31
31
32
32
image-build :
33
- $(CONTAINER_BUILD ) -f Dockerfile -t codegate . -t ghcr.io/stacklok/codegate:$(VER ) --load
34
-
33
+ DOCKER_BUILDKIT=1 $(CONTAINER_BUILD ) -f Dockerfile --secret id=gh_token,env=GH_CI_TOKEN -t codegate . -t ghcr.io/stacklok/codegate:$(VER ) --load
35
34
36
35
all : clean install format lint test security build
You can’t perform that action at this time.
0 commit comments