-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
28 lines (22 loc) · 875 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Use the barebones version of Ruby 2.7.x
FROM ruby:2.7
# Install dependencies:
# - build-essential: To ensure certain gems can be compiled
# - nodejs: Compile assets
# - bundler: ensure most recent version is installed
RUN apt-get update && apt-get install -qq -y build-essential --fix-missing --no-install-recommends
RUN gem install bundler -v 2.4.22
# Set an environment variable to store where the app is installed to inside
# of the Docker image.
ENV LANG C.UTF-8
ENV BUNDLE_PATH /bundle
ENV INSTALL_PATH /addressfinder-ruby
RUN mkdir -p $INSTALL_PATH
# Create address verification directories
RUN mkdir -p $INSTALL_PATH/verification/originals
RUN mkdir -p $INSTALL_PATH/verification/verified
# This sets the context of where commands will be ran in and is documented
# on Docker's website extensively.
WORKDIR $INSTALL_PATH
ADD . $INSTALL_PATH
RUN bundle install