Locally when docker copies file, I have a folder that has 2 files:
database.yml database.docker.yml
When I run docker-compose up I want to delete the file database.yml and then rename the other file database.docker.yml to database.yml
This is what I have now but it isn't working:
ADD . /app
RUN rm /app/config/database.yml
RUN mv /app/config/database.docker.yml /app/config/database.yml
My docker-compose for this service is:
rails:
build: ../rails-web
volumes:
- ../rails-web:/app
ports:
- "3000:3000"
depends_on:
- db
command: puma -C config/puma.rb
env_file:
- '.env'