You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
892 B
39 lines
892 B
# If you are wondering why the default args are set in the Dockerfile and in the
|
|
# docker-compose.yml see this: https://github.com/docker/compose/issues/3608
|
|
ARG BLD_IMG=${BLD_IMG:-node}
|
|
ARG BLD_TAG=${BLD_TAG:-15-alpine}
|
|
ARG BLD_REPO=${BLD_REPO:-https://github.com/kiwiirc/kiwiirc.git}
|
|
ARG BLD_VER=${BLD_VER:-master}
|
|
ARG FNL_IMG=${FNL_IMG:-nginx}
|
|
ARG FNL_TAG=${FNL_TAG:-stable}
|
|
|
|
FROM ${BLD_IMG}:${BLD_TAG} AS builder
|
|
|
|
ARG BLD_REPO
|
|
ARG BLD_VER
|
|
|
|
RUN apk --update add \
|
|
git \
|
|
python3 \
|
|
make \
|
|
g++
|
|
|
|
RUN git clone \
|
|
--depth 1 \
|
|
--single-branch \
|
|
--branch ${BLD_VER} \
|
|
${BLD_REPO} \
|
|
/kiwiirc
|
|
|
|
WORKDIR /kiwiirc
|
|
|
|
RUN yarn install && \
|
|
yarn run build
|
|
|
|
|
|
FROM ${FNL_IMG}:${FNL_TAG} AS kiwiirc
|
|
|
|
COPY --from=builder /kiwiirc/dist /usr/share/nginx/html
|
|
#COPY static/config.json /usr/share/nginx/html/static/config.json
|
|
|
|
EXPOSE 80
|
|
|