Skip to content

Commit

Permalink
Update startup user
Browse files Browse the repository at this point in the history
  • Loading branch information
1473371932 authored Sep 14, 2024
1 parent c2ce86c commit 3d464b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,24 @@ FROM alpine:latest as deepflow-server

MAINTAINER [email protected]

RUN mkdir /etc/mysql
RUN apk update && \
apk upgrade && \
apk add tzdata
RUN groupadd -g 1000 deepflow && \
useradd -u 1000 -g 1000 -m deepflow -s /bin/sh && \
echo 'root:deepflow' | chpasswd

COPY ./server.yaml /etc/
RUN mkdir /etc/mysql
COPY ./controller/db/mysql/migration/rawsql /etc/mysql
COPY ./controller/cloud/filereader/manual_data_samples.yaml /etc/
COPY ./querier/db_descriptions /etc/db_descriptions/
ARG TARGETARCH

RUN --mount=target=/tmp-mount \
cp -a /tmp-mount/bin/deepflow-server.${TARGETARCH} /bin/deepflow-server
RUN chown -R deepflow:deepflow /etc/ /bin/deepflow-server

USER deepflow

CMD /bin/deepflow-server

0 comments on commit 3d464b4

Please sign in to comment.