smgc commited on
Commit
6a7cc58
1 Parent(s): 66e2a41

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -9,12 +9,13 @@ RUN apk update \
9
 
10
  COPY --from=builder /one-api /usr/local/bin/one-api
11
 
12
- WORKDIR /data
13
 
14
  COPY Caddyfile ./Caddyfile
 
15
 
16
- RUN chmod 777 -R /data
17
 
18
  EXPOSE 3001
19
 
20
- CMD ["sh", "-c", "caddy run --config /data/Caddyfile & /usr/local/bin/one-api"]
 
9
 
10
  COPY --from=builder /one-api /usr/local/bin/one-api
11
 
12
+ WORKDIR /app
13
 
14
  COPY Caddyfile ./Caddyfile
15
+ RUN touch /app/caddy.log && chmod 777 -R /app/caddy.log
16
 
17
+ RUN chmod 777 -R /app
18
 
19
  EXPOSE 3001
20
 
21
+ CMD ["sh", "-c", "caddy run --config /app/Caddyfile & /usr/local/bin/one-api"]