docker-scripts/bitbucket/latest/Dockerfile

33 lines
1.1 KiB
Docker
Raw Normal View History

2018-09-18 13:34:39 +03:00
FROM openjdk:8-jdk-alpine
MAINTAINER Atlassian Bitbucket Server Team
ENV RUN_USER daemon
ENV RUN_GROUP daemon
# https://confluence.atlassian.com/display/BitbucketServer/Bitbucket+Server+home+directory
ENV BITBUCKET_HOME /var/atlassian/application-data/bitbucket
ENV BITBUCKET_INSTALL_DIR /opt/atlassian/bitbucket
VOLUME ["${BITBUCKET_HOME}"]
# Expose HTTP and SSH ports
EXPOSE 7990
EXPOSE 7999
WORKDIR $BITBUCKET_HOME
CMD ["/entrypoint.sh", "-fg"]
ENTRYPOINT ["/sbin/tini", "--"]
RUN apk add --no-cache wget curl git git-daemon openssh bash procps openssl perl ttf-dejavu tini
COPY entrypoint.sh /entrypoint.sh
2018-10-19 12:31:31 +03:00
ARG BITBUCKET_VERSION=5.15.0
2018-09-18 13:34:39 +03:00
ARG DOWNLOAD_URL=https://downloads.atlassian.com/software/stash/downloads/atlassian-bitbucket-${BITBUCKET_VERSION}.tar.gz
COPY . /tmp
RUN mkdir -p ${BITBUCKET_INSTALL_DIR} \
&& curl -L --silent ${DOWNLOAD_URL} | tar -xz --strip-components=1 -C "$BITBUCKET_INSTALL_DIR" \
&& chown -R ${RUN_USER}:${RUN_GROUP} ${BITBUCKET_INSTALL_DIR}/