mirror of
https://github.com/TDSCDMAA/AutoMihoyoBBS.git
synced 2026-06-02 18:43:42 +08:00
修复Dockerfile的权限问题
This commit is contained in:
parent
f7acdc24f7
commit
708d9951a1
@ -1,10 +1,9 @@
|
||||
FROM python:3-alpine
|
||||
LABEL maintainer="mailto@wolfbolin.com"
|
||||
LABEL maintainer="x.yangtze.river@gmail.com"
|
||||
|
||||
ENV CRON_SIGNIN='30 9 * * *'
|
||||
ENV MULTI=TRUE
|
||||
ENV TZ=Asia/Shanghai
|
||||
RUN adduser app -D
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \
|
||||
&& apk add --no-cache tzdata
|
||||
|
||||
@ -12,7 +11,6 @@ WORKDIR /tmp
|
||||
ADD requirements.txt ./
|
||||
RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
|
||||
|
||||
USER app
|
||||
WORKDIR /var/app
|
||||
COPY . /var/app
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user