-
Notifications
You must be signed in to change notification settings - Fork 430
/
Dockerfile
30 lines (29 loc) · 1.02 KB
/
Dockerfile
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
30
FROM alpine:3.20
RUN apk update && \
apk --no-cache add curl && \
apk --no-cache add gpg && \
apk --no-cache add git && \
apk --no-cache add tzdata && \
apk --no-cache add openssh-client && \
apk --no-cache add gpg-agent && \
apk --no-cache add ca-certificates && \
apk upgrade && rm -rf /var/cache/apk/*
RUN update-ca-certificates
RUN echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /etc/ssh/ssh_config
RUN mkdir -p /app/sql /app/ui_static_files
COPY dist/cds-engine-* /app/
COPY dist/cdsctl-* /app/
COPY dist/cds-worker-* /app/
COPY dist/sql.tar.gz /app/
COPY dist/ui.tar.gz /app/
COPY dist/cds-docs.tar.gz /app/
RUN addgroup cds && adduser cds -G cds -D
RUN chmod +x /app/cds-engine-linux-amd64 && \
tar xzf /app/sql.tar.gz -C /app/sql && \
tar xzf /app/ui.tar.gz -C /app/ui_static_files && \
tar xzf /app/cds-docs.tar.gz -C /app/ui_static_files && \
mv /app/ui_static_files/cds-docs /app/ui_static_files/docs && \
chown -R cds:cds /app
USER cds
WORKDIR /app
CMD ["/app/cds-engine-linux-amd64"]