-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile.wiredtiger
39 lines (30 loc) · 1.05 KB
/
Dockerfile.wiredtiger
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
31
32
33
34
35
36
37
38
39
FROM golang:1.17 AS build
WORKDIR /src
# enable modules caching in separate layer
COPY go.mod go.sum ./
RUN go env -w GOPROXY=https://goproxy.cn,direct
RUN go mod download
COPY . ./
RUN apt update
RUN apt install -y build-essential
RUN apt install -y cmake autoconf automake libtool pkg-config rsync
RUN make binary LIB_INSTALL_DIR=/src/lib IS_DOCKER=true
FROM debian:11.2-slim
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*; \
groupadd -r aurora --gid 999; \
useradd -r -g aurora --uid 999 --no-log-init -m aurora;
# make sure mounted volumes have correct permissions
RUN mkdir -p /home/aurora/.aurora && chown 999:999 /home/aurora/.aurora
COPY --from=build /src/lib/include/* /usr/local/include
COPY --from=build /src/lib/lib/* /usr/local/lib
COPY --from=build /src/dist/aurora /usr/local/bin/aurora
RUN ldconfig
EXPOSE 1633 1634 1635
USER aurora
WORKDIR /home/aurora
VOLUME /home/aurora/.aurora
ENTRYPOINT ["aurora"]