35 lines
2.8 KiB
Docker
35 lines
2.8 KiB
Docker
FROM docker.io/bitnami/minideb:bullseye
|
|
ENV OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-11" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl gzip libbrotli1 libbz2-1.0 libc6 libcom-err2 libcrypt1 libcurl4 libffi7 libgcc-s1 libgcrypt20 libgmp10 libgnutls30 libgpg-error0 libgssapi-krb5-2 libhogweed6 libidn2-0 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 liblzma5 libncursesw6 libnettle8 libnghttp2-14 libnsl2 libp11-kit0 libpsl5 libreadline8 librtmp1 libsasl2-2 libsqlite3-0 libssh2-1 libssl1.1 libstdc++6 libtasn1-6 libtinfo6 libtirpc3 libunistring2 procps sudo tar zlib1g
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "python" "3.8.13-152" --checksum a831df58c181297ce77597daf2364175cbb9f211f7755ca8d8c8b5918ad9ce24
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "node" "14.20.0-0" --checksum 4580c44a68dab8200beed1d6c1a2397c854722ada2b81d9564b20388336453f9
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-152" --checksum 0c751c7e2ec0bc900a19dbec0306d6294fe744ddfb0fa64197ba1a36040092f0
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "sequelize-cli" "6.4.1-150" --checksum ddbe9550efc4b8b1d0d4a85c846b05ea7ea30a868835a76e0c00e102d0ab4252
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "git" "2.37.1-1" --checksum 39ea3040baa552b4760c1100a3713f86493620c0a74121c1ceba50fe17341878
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "express-generator" "4.16.1-151" --checksum 34666b6db5852515c08e4f2256af3f7b3977d20950a2e5588b67a753b09f06d3
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "bower" "1.8.12-151" --checksum 2b1982b8212bb74f82dacc26be8cc895df00a5f08b82370c3f8ef1ddb712e81d
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "1.0.3-150" --checksum 1013e2ebbe58e5dc8f3c79fc952f020fc5306ba48463803cacfbed7779173924
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "express" "4.18.1-151" --checksum ad3962ff389e55ba22640e548092ec3000ab416234afa5111f63aeec017ecd2d
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN /build/bitnami-user.sh
|
|
|
|
COPY rootfs /
|
|
RUN mkdir -p /dist /app /.npm /.config /.cache /.local && chmod g+rwX /dist /app /.npm /.config /.cache /.local
|
|
RUN /opt/bitnami/scripts/express/postunpack.sh
|
|
ENV APP_VERSION="4.18.1" \
|
|
BITNAMI_APP_NAME="express" \
|
|
PATH="/opt/bitnami/python/bin:/opt/bitnami/node/bin:/opt/bitnami/common/bin:/opt/bitnami/sequelize-cli/bin:/opt/bitnami/git/bin:/opt/bitnami/bower/bin:/opt/bitnami/express/bin:$PATH"
|
|
|
|
EXPOSE 3000
|
|
|
|
WORKDIR /app
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/express/entrypoint.sh" ]
|
|
CMD [ "npm", "start" ]
|