Dockerfile 763 Bytes
Newer Older
1 2
FROM camilstaps/clean:nightly

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

8
RUN install_clean.sh 'base lib-platform lib-tcpip' 2018-10-12 \
9
	&& PACKAGES="patch jq" \
10
	&& apt-get update -qq\
11
	&& apt-get install -qq $PACKAGES --no-install-recommends\
12
	&& make distclean CloogleServer builddb\
13
	&& ./fetch_libs.sh /opt/clean/lib\
14
	&& make types.json\
Camil Staps's avatar
Camil Staps committed
15
	&& rm -rf \
16
		Cloogle \
Camil Staps's avatar
Camil Staps committed
17 18 19 20 21
		Clean\ System\ Files \
		clean-compiler \
		*.dcl *.icl \
		Dockerfile \
		Makefile \
22
	&& rm -rf /opt/clean \
Camil Staps's avatar
Camil Staps committed
23 24
	&& apt-get remove --purge -qq $PACKAGES \
	&& apt-get autoremove -qq \
25 26
	&& rm -rf /var/lib/apt/lists \
	&& uninstall_clean.sh
Camil Staps's avatar
Camil Staps committed
27 28 29 30 31

EXPOSE 31215

ENTRYPOINT "./serve"
CMD []