Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build vite / dockerignore certain folders / mount repository #15

Merged
merged 1 commit into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading