fix build
continuous-integration/drone/tag Build is failing Details

This commit is contained in:
Philipp Lang 2023-07-20 16:57:30 +02:00
parent 1d808f0e10
commit 3bd087f729
3 changed files with 4 additions and 12 deletions

View File

@ -1,8 +1,3 @@
FROM composer:2.2.7 as composer
WORKDIR /app
COPY . /app
RUN composer install --ignore-platform-reqs --no-dev
FROM node:17.9.0-slim as node
WORKDIR /app
COPY . /app
@ -10,9 +5,7 @@ RUN npm install && npm run prod && npm run img && rm -R node_modules
FROM nginx:1.21.6-alpine as nginx
WORKDIR /app
COPY --chown=www-data:www-data . /app
COPY --chown=www-data:www-data --from=node /app/public /app/public
COPY --chown=www-data:www-data --from=composer /app/vendor /app/vendor
COPY --chown=www-data:www-data --from=node /app /app
COPY ./.docker/nginx/nginx.conf /etc/nginx/nginx.conf
EXPOSE 80

View File

@ -6,8 +6,7 @@ RUN composer install --ignore-platform-reqs --no-dev
FROM node:17.9.0-slim as node
WORKDIR /app
COPY . /app
RUN npm install && npm run prod && rm -R node_modules
RUN npm install && npm run prod && npm run img && rm -R node_modules
FROM php:8.1.6-fpm as php
WORKDIR /app

View File

@ -73,7 +73,7 @@ steps:
from_secret: docker_hub_token
tags:
- latest
- $DRONE_TAG
- ${DRONE_TAG}
pull_image: true
when:
event: tag
@ -88,7 +88,7 @@ steps:
from_secret: docker_hub_token
tags:
- latest
- $DRONE_TAG
- ${DRONE_TAG}
pull_image: true
when:
event: tag