Commit e3349b4a authored by Zac Wood's avatar Zac Wood

Added Dockerfiles for use during development

parent cc4f4bdc
Pipeline #2851 passed with stage
in 2 minutes and 22 seconds
#! /bin/bash
# Build the API image
cd schedules_api/
docker build . -t 'schedules_api'
docker build . -t 'schedules_api' -f Dockerfile.dev
# Build the Web image
cd ../schedules_web
docker build . -t 'schedules_web'
docker build . -t 'schedules_web' -f Dockerfile.dev
# Start and link the images together
cd ..
docker-compose up
FROM ruby:2.5
# Copy the project files to /api
COPY . /api
# Tell Docker to run all commands in /api
WORKDIR /api
# Install project dependencies
RUN bundle install
# Perform database migrations
RUN rails db:migrate
# Load the database from Patriot Web
RUN rails db:seed
FROM node:9
# Copy the project files to /web
COPY . /web
# Tell Docker to run all commands in /api
WORKDIR /web
# Install project dependencies
RUN yarn
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