-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 687 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (23 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Go compiler
FROM golang as builder
ENV GOOS="linux" GOARCH="amd64"
WORKDIR /go/src/rotate
COPY go/ /go/
RUN go build rotate.go
# Main
FROM ubuntu:24.04
RUN mkdir -p /opt/docker && echo "amd64" > /opt/docker/architecture
ENV DEBIAN_FRONTEND=noninteractive \
TIMEZONE="Europe/Berlin" \
LANGUAGE="de_DE"
ADD rootfs/opt/docker/bin/bootstrap.sh /opt/docker/bin/bootstrap.sh
RUN chmod +x /opt/docker/bin/bootstrap.sh && /opt/docker/bin/bootstrap.sh
ADD rootfs/ /
COPY --from=builder /go/src/rotate/rotate /usr/local/bin/
RUN set -x && \
chmod +x /opt/docker/bin/* && \
/opt/docker/bin/bootstrap.sh
WORKDIR /root
ENTRYPOINT ["/entrypoint"]
CMD ["supervisord"]
#CMD ["noop"]