Dockerfile 764 Bytes
Newer Older
1
FROM camilstaps/clean:nightly AS builder
2

3
COPY backend /usr/src/cloogle
Camil Staps's avatar
Camil Staps committed
4 5
COPY libs.json /usr/src/libs.json
COPY util/fetch_libs.sh /usr/src/util/fetch_libs.sh
Camil Staps's avatar
Camil Staps committed
6
WORKDIR /usr/src/cloogle
Camil Staps's avatar
Camil Staps committed
7
RUN ./build.sh
Camil Staps's avatar
Camil Staps committed
8

9
FROM debian:buster-slim AS runner
10 11

WORKDIR /usr/src/cloogle
12 13 14
RUN apt-get update -qq &&\
	apt-get install -qq libc6-i386 &&\
	rm -rf /var/lib/apt/lists
15 16 17
COPY --from=builder /usr/src/cloogle/CloogleServer /usr/src/cloogle/CloogleServer
COPY --from=builder /usr/src/cloogle/types.json /usr/src/cloogle/types.json
COPY --from=builder /usr/src/cloogle/rank_settings.json /usr/src/cloogle/rank_settings.json
18
COPY --from=builder /usr/src/cloogle/typetree.dot /usr/src/cloogle/typetree.dot
19 20
COPY backend/serve /usr/src/cloogle/serve

Camil Staps's avatar
Camil Staps committed
21 22 23 24
EXPOSE 31215

ENTRYPOINT "./serve"
CMD []