WebDyne
view release on metacpan or search on metacpan
docker/Dockerfile.fedora view on Meta::CPAN
org.opencontainers.image.source=${LABEL_SOURCE} \
org.opencontainers.image.documentation=${LABEL_DOCUMENTATION} \
org.opencontainers.image.authors=${LABEL_AUTHORS} \
org.opencontainers.image.licenses=${LABEL_LICENSES} \
org.opencontainers.image.created=${LABEL_CREATED} \
org.opencontainers.image.version=${LABEL_VERSION} \
org.opencontainers.image.revision=${LABEL_REVISION} \
org.opencontainers.image.base=${BASE}
# Install build tools and core Perl modules
#
RUN dnf install -y \
perl \
perl-core \
perl-App-cpanminus \
&& dnf clean all
# Install Carton
#
RUN cpanm --notest Carton
# Set up environment for local::lib
#
ENV PERL_CARTON_PATH=${PERL_CARTON_PATH}
ENV PERL5LIB=${PERL_CARTON_PATH}/lib/perl5
ENV PATH=${PERL_CARTON_PATH}/bin:$PATH
# Only psp files go into /app, WebDyne perl modules installed into $PERL_CARTONPATH (/opt/webdyne)
# by default
#
WORKDIR /app
# Copy CPAN modules from builder + example file
#
COPY --from=builder ${PERL_CARTON_PATH} ${PERL_CARTON_PATH}
COPY docker/app.psp .
# Expose port (default 8080)
#
EXPOSE ${PORT}
# Set document root environment var to the server_time example
#
ENV DOCUMENT_ROOT=${DOCUMENT_ROOT}
# WebDyne environment vars
#
ENV WEBDYNE_CACHE_DN=${PERL_CARTON_PATH}/cache
# Entrypoint script for starting process. Kicks off starman on ${PORT}
#
COPY docker/entrypoint.sh /usr/local/bin
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
# Empty cmd, entrypoint script runs "starman --port ${PORT} ${PERL_CARTON_PATH}/bin/webdyne.psgi ${DOCUMENT_ROOT}"
#
CMD []
( run in 0.901 second using v1.01-cache-2.11-cpan-e93a5daba3e )