mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
ac0103a1ee
* build: use alpine as base image * build: use alpine edge instead of latest
21 lines
484 B
Docker
21 lines
484 B
Docker
FROM alpine:edge
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
RUN apk update && \
|
|
apk upgrade --no-cache && \
|
|
apk add --no-cache tzdata && \
|
|
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
|
echo 'Asia/Shanghai' >/etc/timezone && \
|
|
rm -rf /var/cache/apk/*
|
|
|
|
COPY ./script/entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
WORKDIR /dashboard
|
|
COPY dist/dashboard-${TARGETOS}-${TARGETARCH} ./app
|
|
|
|
VOLUME ["/dashboard/data"]
|
|
EXPOSE 80 5555
|
|
ENTRYPOINT ["/entrypoint.sh"] |