mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-29 16:15:45 +03:00
STAM
61938a770d
bump versions updated `LazyGIT` to `0.40.2` converterd some envs to args sources.list fix + nextcloud updates python fix java fixes python fix java fixes bitbucket full images
47 lines
1.8 KiB
Docker
47 lines
1.8 KiB
Docker
FROM epicmorg/debian:bookworm-jdk7
|
|
LABEL maintainer="Atlassian Bitbucket Team; EpicMorg DevTeam, developer@epicm.org"
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
##################################################################
|
|
# ARGuments
|
|
##################################################################
|
|
|
|
#configured by dockerfile / .ENV
|
|
ARG RELEASE
|
|
ARG DOWNLOAD_URL
|
|
|
|
##################################################################
|
|
# 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
|
|
ENV STASH_HOME=${BITBUCKET_HOME}
|
|
|
|
VOLUME ["${BITBUCKET_HOME}"]
|
|
WORKDIR $BITBUCKET_HOME
|
|
|
|
# Expose HTTP and SSH ports
|
|
EXPOSE 7990
|
|
EXPOSE 7999
|
|
|
|
##################################################################
|
|
# Installing
|
|
##################################################################
|
|
RUN mkdir -p ${BITBUCKET_INSTALL_DIR} && \
|
|
curl --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0" -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 |