mirror of
https://github.com/bitnami/containers.git
synced 2026-04-04 00:08:07 +08:00
* removed `BITNAMI_APP_DIR` macro * removed `BITNAMI_APP_VOL_PREFIX` macro * define `BITNAMI_APP_CHECKSUM` macro * add `/opt/bitnami/$BITNAMI_APP_NAME/sbin` to PATH * organize dockerfile for stacksmith
27 lines
868 B
Docker
27 lines
868 B
Docker
FROM gcr.io/stacksmith-images/ubuntu:14.04-r05
|
|
MAINTAINER Bitnami <containers@bitnami.com>
|
|
|
|
ENV BITNAMI_APP_NAME=mongodb \
|
|
BITNAMI_APP_VERSION=3.2.1-1 \
|
|
BITNAMI_APP_CHECKSUM=5ce07680ee85d6c61e690d760a7e3eced923d74b52963a7c01b0157f40d66314 \
|
|
BITNAMI_APP_USER=mongo
|
|
|
|
COPY pkg-cache/ /tmp/bitnami/pkg/cache/
|
|
|
|
# Install supporting modules
|
|
RUN bitnami-pkg install base-functions-1.0.0-2 --checksum 9789082a1e01a4411198136477723288736d5ad5990403a208423b39369c8aac
|
|
|
|
# Install application
|
|
RUN bitnami-pkg unpack $BITNAMI_APP_NAME-$BITNAMI_APP_VERSION --checksum $BITNAMI_APP_CHECKSUM
|
|
ENV PATH=/opt/bitnami/$BITNAMI_APP_NAME/sbin:/opt/bitnami/$BITNAMI_APP_NAME/bin:$PATH
|
|
|
|
# Setting entry point
|
|
COPY rootfs/ /
|
|
ENTRYPOINT ["/app-entrypoint.sh"]
|
|
CMD ["harpoon", "start", "--foreground", "mongodb"]
|
|
|
|
# Exposing ports
|
|
EXPOSE 27017
|
|
|
|
VOLUME ["/bitnami/$BITNAMI_APP_NAME"]
|