Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a0e7fce26 | ||
|
|
d90b4d7863 | ||
|
|
2860d2e949 | ||
|
|
ad2bbfd48c |
@@ -10,15 +10,18 @@ FROM alpine:${ALPINE_VERSION} AS build_stage
|
|||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
curl \
|
curl \
|
||||||
php84 \
|
php84 \
|
||||||
|
php84-ctype \
|
||||||
php84-curl \
|
php84-curl \
|
||||||
|
php84-dom \
|
||||||
php84-fileinfo \
|
php84-fileinfo \
|
||||||
|
php84-fpm \
|
||||||
php84-gd \
|
php84-gd \
|
||||||
php84-mbstring \
|
php84-mbstring \
|
||||||
php84-mysqli \
|
php84-mysqli \
|
||||||
php84-opcache \
|
php84-opcache \
|
||||||
php84-openssl \
|
php84-openssl \
|
||||||
php84-pdo_mysql \
|
php84-pdo_mysql \
|
||||||
php84-xml \
|
php84-tokenizer \
|
||||||
supervisor
|
supervisor
|
||||||
|
|
||||||
RUN ln -s /usr/bin/php84 /usr/bin/php
|
RUN ln -s /usr/bin/php84 /usr/bin/php
|
||||||
|
|||||||
@@ -8,6 +8,9 @@
|
|||||||
# Default to latest, but should pass in a version
|
# Default to latest, but should pass in a version
|
||||||
ARG APP_VERSION="latest"
|
ARG APP_VERSION="latest"
|
||||||
|
|
||||||
|
# Set aside the actual app image so we can copy the app from there
|
||||||
|
FROM code.caldwell.digital/home/torsearch-app:${APP_VERSION} AS app_image
|
||||||
|
|
||||||
# Start with our base worker image
|
# Start with our base worker image
|
||||||
FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
||||||
|
|
||||||
@@ -15,7 +18,7 @@ FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
|||||||
ENV APP_VERSION=${APP_VERSION}
|
ENV APP_VERSION=${APP_VERSION}
|
||||||
|
|
||||||
# Copy the actual application code from the previously built app
|
# Copy the actual application code from the previously built app
|
||||||
COPY --chown=1000:1000 ./ /app
|
COPY --chown=1000:1000 --from=app_image /app /app
|
||||||
|
|
||||||
# To retain backwards compatibility, default to async & download transports
|
# To retain backwards compatibility, default to async & download transports
|
||||||
CMD [ "--monitor" ]
|
CMD [ "--monitor" ]
|
||||||
|
|||||||
@@ -8,6 +8,9 @@
|
|||||||
# Default to latest, but should pass in a version
|
# Default to latest, but should pass in a version
|
||||||
ARG APP_VERSION="latest"
|
ARG APP_VERSION="latest"
|
||||||
|
|
||||||
|
# Set aside the actual app image so we can copy the app from there
|
||||||
|
FROM code.caldwell.digital/home/torsearch-app:${APP_VERSION} AS app_image
|
||||||
|
|
||||||
# Start with our base worker image
|
# Start with our base worker image
|
||||||
FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
||||||
|
|
||||||
@@ -15,7 +18,7 @@ FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
|||||||
ENV APP_VERSION=${APP_VERSION}
|
ENV APP_VERSION=${APP_VERSION}
|
||||||
|
|
||||||
# Copy the actual application code from the previously built app
|
# Copy the actual application code from the previously built app
|
||||||
COPY --chown=1000:1000 ./ /app
|
COPY --chown=1000:1000 --from=app_image /app /app
|
||||||
|
|
||||||
# To retain backwards compatibility, default to async & download transports
|
# To retain backwards compatibility, default to async & download transports
|
||||||
CMD [ "--async", "--download" ]
|
CMD [ "--async", "--download" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user