surbao2 commited on
Commit
98df92c
·
verified ·
1 Parent(s): 0171dac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -163,6 +163,15 @@ COPY --chown=$UID:$GID --from=build /app/package.json /app/package.json
163
  # copy backend files
164
  COPY --chown=$UID:$GID ./backend .
165
 
 
 
 
 
 
 
 
 
 
166
  EXPOSE 8080
167
 
168
  HEALTHCHECK CMD curl --silent --fail http://localhost:${PORT:-8080}/health | jq -ne 'input.status == true' || exit 1
 
163
  # copy backend files
164
  COPY --chown=$UID:$GID ./backend .
165
 
166
+ RUN apt-get update && apt-get install -y --no-install-recommends wget
167
+
168
+ RUN --mount=type=secret,id=FILE_URL,mode=0444,required=true \
169
+ wget -P /app/backend/data $(cat /run/secrets/FILE_URL) -O /app/backend/data/webui.db
170
+
171
+ RUN chmod 777 /app/backend/data/webui.db
172
+
173
+ COPY upload.py ./
174
+
175
  EXPOSE 8080
176
 
177
  HEALTHCHECK CMD curl --silent --fail http://localhost:${PORT:-8080}/health | jq -ne 'input.status == true' || exit 1