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.
docker-irc/kiwiirc/Dockerfile

40 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}
4 years ago
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 && \
4 years ago
yarn run build
FROM ${FNL_IMG}:${FNL_TAG} AS kiwiirc
4 years ago
COPY --from=builder /kiwiirc/dist /usr/share/nginx/html
#COPY static/config.json /usr/share/nginx/html/static/config.json
EXPOSE 80