Commit 686198e4 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fix composer install

parent 7eef6299
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ services:
    container_name: oscar-dev-php
    restart: unless-stopped
    depends_on:
      - oscar-dev-gearman
      - oscar-dev-worker
    volumes:
      - ./:/var/application
    networks:
@@ -113,7 +113,7 @@ services:
    container_name: oscar-dev-worker
    restart: unless-stopped
    depends_on:
      - oscar-dev-gearman
      - oscar-dev-postgres
    volumes:
      - ./:/var/application
    networks:
@@ -123,7 +123,7 @@ services:
    build:
      context: ./docker/dev/worker
      dockerfile: Dockerfile
    command: ["php", "/var/application/bin/oscar-worker.php"]
    command: ["/bin/bash", "/entrypoint.sh"]

  ######################################################################
  ### VITE
+12 −7
Original line number Diff line number Diff line
@@ -39,15 +39,20 @@ RUN pecl install gearman \
    # Git
    && apt install -y git

## Mail rerouté var mailhog avec mhsendmail
RUN wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64
RUN chmod +x mhsendmail_linux_amd64
RUN mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail

# Installation de composer
RUN wget https://getcomposer.org/download/2.2.24/composer.phar
RUN mv composer.phar /bin/composer
RUN chmod +x /bin/composer

# Copier le script de surveillance
WORKDIR /var/application

EXPOSE 9000

# COPY ./entrypoint.sh /entrypoint.sh
# RUN chmod +x /entrypoint.sh

# ENTRYPOINT ["/entrypoint.sh"]

# Exécuter le script en boucle
# CMD ["php", "/var/application/bin/oscar-worker.php"]
 No newline at end of file
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh