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

WIP: Add Dockerfile #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM greyltc/archlinux
MAINTAINER Maciej Sobaczewski <[email protected]>

WORKDIR /usr/local/src

RUN pacman -Syu --noconfirm php php-mcrypt php-intl nginx php-fpm php-gd php-sqlite composer nodejs npm
RUN npm i -g yarn

COPY / /usr/local/src

RUN yarn install
RUN composer install

RUN node_modules/.bin/gulp assets
CMD ["php", "artisan", "serve", "--host=0.0.0.0"]
21 changes: 21 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,26 @@ If you are more advanced user, read [installation chapter](http://docs.codice.eu
the docs, so that you can build Codice from sources and install it step by step, having
full control over the process.

## Development with Docker
First, get a working `.env` file (probably using SQLite, server-ish RDMBS not included).

Build the container:

```bash
docker build -t codice .
```

Start it, detached (so you don't need to open a second terminal/console to stop it later):

```bash
docker run --publish 8000:8000 --name codice --detach codice
```

And navigate to http://localhost:8000/. After you finish work, shutdown the container:

```bash
docker stop codice
```

## License
The project is lincensed under MIT, check out [LICENSE](LICENSE.md) for more details.