1
0

Configured basic docker-compose

This commit is contained in:
Miguel Salgado 2023-05-22 18:54:11 -07:00
parent 0c5bd2637b
commit 64413a8131
2 changed files with 19 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM ruby:3.2.2
RUN mkdir -p /var/app
COPY . /app
WORKDIR /app
RUN bundle install
CMD rails server -e development -b 0.0.0.0 --log-to-stdout

13
docker-compose.yaml Normal file
View File

@ -0,0 +1,13 @@
version: "3"
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- "./:/app"
environment:
- ENVIRONMENT=development