You've already forked gitea-composer-upload-action
feat: Use Bash as runtime ✨
This commit is contained in:
24
Dockerfile
24
Dockerfile
@@ -1,22 +1,6 @@
|
||||
FROM rosven9856/php:8.3.10-1
|
||||
FROM cybercinch/base-alpine-bash:latest
|
||||
|
||||
RUN addgroup -g 1000 --system php
|
||||
RUN adduser -G php --system -D -s /bin/sh -u 1000 php
|
||||
COPY scripts/docker-entrypoint.sh /entrypoint.sh
|
||||
|
||||
RUN chown php:php /home/php
|
||||
RUN chown php:php /usr/local/bin/composer
|
||||
|
||||
RUN mkdir /var/src
|
||||
RUN chown -R php:php /var/src
|
||||
|
||||
WORKDIR /var/src
|
||||
|
||||
COPY ./src /var/src
|
||||
|
||||
RUN composer install
|
||||
|
||||
USER php
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
ENV upload_file=build/Package.zip
|
||||
CMD ["/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user