Commit f76bdff6 authored by Zac Wood's avatar Zac Wood

Fixed docker for devlopment

parent d213fe83
Pipeline #4648 failed with stage
version: "3.7"
services:
schedules:
build:
context: ./schedules
dockerfile: Dockerfile.dev
ports:
- 3000:3000
volumes:
- ./schedules:/schedules
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
/node_modules
/yarn-error.log
.byebug_history
/public/packs
/public/packs-test
/node_modules
yarn-debug.log*
.yarn-integrity
coverage
subjects
\ No newline at end of file
FROM starefossen/ruby-node:latest
RUN mkdir /schedules
WORKDIR /schedules
ADD . /schedules
EXPOSE 3000
ENV RAILS_ENV development
RUN bundle install
RUN yarn install
RUN rails db:migrate
RUN rails db:seed
RUN rails runner db/load_course_ratings.rb
CMD ["./start.sh"]
Rails.application.configure do
# Verifies that versions and hashed value of the package contents in the project's package.json
config.webpacker.check_yarn_integrity = true
config.webpacker.check_yarn_integrity = false
# Settings specified here will take precedence over those in config/application.rb.
......
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