Skip to content

Commit

Permalink
ADDED Docker-compose file for development
Browse files Browse the repository at this point in the history
  • Loading branch information
rexchoppers committed Oct 12, 2022
1 parent 2330b8f commit eacc6c4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM php:7.4-alpine3.12

WORKDIR /app

RUN apk add --update libdmtx bash curl

COPY composer.json composer.lock ./

RUN curl -s https://getcomposer.org/installer | php
RUN ./composer.phar i
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.4'
services:
api:
ports:
- "9000:8080"
build:
context: .
dockerfile: Dockerfile.dev
command: "php -S 0.0.0.0:8080 -t public"
volumes:
- ./:/app

0 comments on commit eacc6c4

Please sign in to comment.