Skip to content

Instantly share code, notes, and snippets.

@jcavat
Last active June 11, 2019 14:12
Show Gist options
  • Save jcavat/388a3d7ed774acde191a1c64d9eee609 to your computer and use it in GitHub Desktop.
Save jcavat/388a3d7ed774acde191a1c64d9eee609 to your computer and use it in GitHub Desktop.
Docker Abaplans
<IfModule mod_rewrite.c>
Options Indexes FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
docker cp ../abaplan-core/index.html abaplans_www_1:/var/www/html/
docker cp ../abaplan-core/assets/ abaplans_www_1:/var/www/html/
docker cp ../abaplan-core/dist/ abaplans_www_1:/var/www/html/
docker cp ../abaplan-core/i18n/ abaplans_www_1:/var/www/html/
docker cp .htaccess abaplans_www_1:/var/www/html/
docker exec abaplans_www_1 sh -c 'rm /var/www/html/dist/*.js.map'
version: "2"
services:
www:
build: .
ports:
- "8080:80"
FROM php:7.1.2-apache
RUN a2enmod rewrite
@jcavat
Copy link
Author

jcavat commented Jun 2, 2017

These are the development config files. To prepare an image, run:

docker-compose build
docker-compose up -d
sh cp.sh
docker commit abaplans_www_1 jcavat/abaplans:<TAGNAME>
docker push abaplans_www_1 jcavat/abaplans:<TAGNAME>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment