Skip to content

Commit

Permalink
Merge pull request #15 from OpenPlaceGuide/develop
Browse files Browse the repository at this point in the history
Build vite / dockerignore certain folders / mount repository
  • Loading branch information
amenk authored Jun 2, 2024
2 parents e5c8c79 + 1bca596 commit d7a6cfe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Dockerfile
vendor/
.git
public/build/
storage/app/repositories/*
storage/framework/*/*
storage/logs/*
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM composer:2.6.6 as composer

FROM php:8.1-apache-buster
FROM php:8.1-apache-bookworm

RUN apt-get update && apt-get install -y zip

Expand All @@ -10,6 +10,7 @@ RUN apt-get -y update \
&& docker-php-ext-install intl

RUN apt-get install -y \
nodejs npm \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
Expand All @@ -35,3 +36,5 @@ RUN chown -R www-data:www-data /var/www/html/bootstrap/cache || true

COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN composer install --no-dev
RUN npm install
RUN npm run build
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ services:
- APP_KEY
- APP_URL=http://localhost:3000/
- ASSET_URL=http://localhost:3000/

volumes:
- ./storage/app/repositories/opg-data-ethiopia:/var/www/html/storage/app/repositories/opg-data-ethiopia/
web:
image: osmapp
ports:
Expand Down

0 comments on commit d7a6cfe

Please sign in to comment.