2019-12-03 18:26:59 -08:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
|
|
|
ARG DEBUG=true
|
2020-01-19 05:09:46 -08:00
|
|
|
ARG GIT_COMMIT=
|
2019-12-03 18:26:59 -08:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
COPY ./docker/install.sh ./server/website/requirements.txt /
|
|
|
|
WORKDIR /
|
|
|
|
|
|
|
|
RUN mkdir -p /app \
|
2020-01-19 05:09:46 -08:00
|
|
|
&& ([ -n "$GIT_COMMIT" ] && echo "base=$GIT_COMMIT" > /app/.git_commit || :) \
|
2019-12-03 18:26:59 -08:00
|
|
|
&& chmod +x install.sh \
|
|
|
|
&& ./install.sh base
|
|
|
|
|
|
|
|
ENV DEBUG=$DEBUG
|