JCC-CSScheduler/deploy/x86/imagebuild/client/Dockerfile

10 lines
321 B
Docker

FROM alpine:latest
COPY . /opt
WORKDIR /opt/client
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add --no-cache tzdata
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN chmod +x client
ENTRYPOINT ["./client","serve","http"]