mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-31 00:55:29 +03:00
46 lines
1.8 KiB
Docker
46 lines
1.8 KiB
Docker
FROM epicmorg/debian:bullseye-jdk11
|
|
LABEL maintainer="Atlassian Jira Server Team; EpicMorg DevTeam, developer@epicm.org"
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
##################################################################
|
|
# ARGuments
|
|
##################################################################
|
|
ARG BITBUCKET_VERSION=7.0.1
|
|
ARG DOWNLOAD_URL=https://product-downloads.atlassian.com/software/stash/downloads/atlassian-bitbucket-${BITBUCKET_VERSION}.tar.gz
|
|
|
|
##################################################################
|
|
# Setup
|
|
##################################################################
|
|
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}"]
|
|
WORKDIR $BITBUCKET_HOME
|
|
|
|
# Expose HTTP and SSH ports
|
|
EXPOSE 7990
|
|
EXPOSE 7999
|
|
|
|
##################################################################
|
|
# Installing
|
|
##################################################################
|
|
RUN mkdir -p ${BITBUCKET_INSTALL_DIR} \
|
|
&& curl -L ${DOWNLOAD_URL} | tar -xz --strip-components=1 -C "${BITBUCKET_INSTALL_DIR}" \
|
|
&& chown -R ${RUN_USER}:${RUN_GROUP} ${BITBUCKET_INSTALL_DIR}/ \
|
|
&& sed -i -e 's/^# umask/umask/' ${BITBUCKET_INSTALL_DIR}/bin/_start-webapp.sh && \
|
|
|
|
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
|
|
apt clean -y && \
|
|
apt autoclean -y && \
|
|
rm -rfv /var/lib/apt/lists/* && \
|
|
rm -rfv /var/cache/apt/archives/*.deb
|
|
|
|
CMD ["/entrypoint.sh", "-fg"]
|
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
COPY . /tmp
|