Commit ab873605 authored by John Noel's avatar John Noel

Initial commit

parents
# Prefix for docker images, containers, volumes and networks
COMPOSE_PROJECT_NAME=sample_app
# What Rails environment are we in?
RAILS_ENV=development
# More details about these Puma variables can be found in config/puma.rb.
# Which address should the Puma app server bind to?
BIND_ON=0.0.0.0:3000
# Puma supports multiple threads but in development mode you'll want to use 1
# thread to ensure that you can properly debug your application.
RAILS_MAX_THREADS=5
# Puma supports multiple workers but you should stick to 1 worker in dev mode.
WEB_CONCURRENCY=1
\ No newline at end of file
FROM ruby:2.5-alpine
ENV http_proxy http://proxy.admu.edu.ph:3128
ENV https_proxy http://proxy.admu.edu.ph:3128
RUN apk update && apk add build-base nodejs postgresql-dev
RUN apk add --update bash tzdata sqlite sqlite-dev
RUN rm -rf /var/cache/apk/*
RUN mkdir /app
WORKDIR /app
COPY . /app
\ No newline at end of file
version: '3'
services:
web:
build: .
command: sh ./start
volumes:
- .:/app
- bundle:/usr/local/bundle
ports:
- '3000:3000'
env_file:
- .env
volumes:
bundle:
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment