Skip to content
Snippets Groups Projects
Verified Commit 8a24498b authored by David Gunnarsson's avatar David Gunnarsson
Browse files

Fix workdir path for production

parent bc64d3f7
No related branches found
No related tags found
No related merge requests found
......@@ -14,8 +14,8 @@ RUN apt-get update && apt-get install -y \
# Configure the main working directory. This is the base
# directory used in any further RUN, COPY, and ENTRYPOINT
# commands.
RUN mkdir -p /facem
WORKDIR /facem
RUN mkdir -p /facem-backoffice
WORKDIR /facem-backoffice
# Set Rails to run in production
ENV RAILS_ENV=production
......@@ -32,7 +32,6 @@ ENV BUNDLE_PACKAGER__DEV=$BUNDLE_PACKAGER__DEV
# Doc: https://bundler.io/v2.3/man/bundle-install.1.html
RUN gem install bundler && \
bundle config set without 'development test' && \
bundle config set --local force_ruby_platform true && \
bundle install
# Copy the rest of the application
......
......@@ -6,7 +6,7 @@ services:
command: bash -c "rm -f tmp/pids/server.pid && bin/rails assets:precompile && bin/rails s -p 3000 -b '0.0.0.0'"
hostname: app10.cc.univie.ac.at
volumes:
- .:/gitlab.phaidra.org/facem/facem-backoffice
- .:/facem-backoffice
ports:
- "3000:3000"
env_file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment