-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
5 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
ARG BASE_TAG=latest | ||
LABEL maintainer="[email protected]" | ||
# Composer dependencies | ||
FROM composer:2 as vendor | ||
COPY api/composer.json composer.json | ||
|
@@ -8,29 +9,15 @@ RUN composer install --ignore-platform-reqs --no-interaction --prefer-dist | |
|
||
FROM us-central1-docker.pkg.dev/skyviewer/public-images/craft-base-image:$BASE_TAG | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
USER root | ||
|
||
# Beginning of supervisord code (requires root user) | ||
RUN apt-get update && apt-get -qq install vim python3.10 pip | ||
RUN pip install supervisor | ||
#COPY queue-runner.conf . | ||
#RUN supervisord -c supervisord.conf | ||
#RUN echo " " > supervisord.conf && cat queue-runner.conf > supervisord.conf | ||
# End of supervisord code | ||
|
||
# Copy in custom code from the host machine. | ||
WORKDIR /var/www/html | ||
COPY --chown=www-data:www-data api/ ./ | ||
|
||
|
||
|
||
COPY --from=vendor --chown=www-data:www-data /app/vendor ./vendor | ||
RUN mkdir /var/secrets && [ -d ./storage ] || mkdir storage | ||
|
||
#RUN supervisord | ||
|
||
USER www-data | ||
|
||
#CMD ["supervisord"] | ||
CMD ["supervisord"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
|
||
# Miscellenious | ||
/log | ||
/tmp | ||
/tmp | ||
|
||
supervisor.log |
This file was deleted.
Oops, something went wrong.