-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 790 Bytes
/
Dockerfile
File metadata and controls
35 lines (28 loc) · 790 Bytes
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
29
30
31
32
33
34
35
FROM ruby:3.0.3-slim
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
curl \
gnupg2
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -\
&& apt-get update -qq && apt-get install -yq --no-install-recommends \
build-essential \
less \
git \
libpq-dev \
postgresql-client \
libvips42 \
nodejs \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /himzosch
COPY Gemfile .
COPY Gemfile.lock .
COPY package.json .
COPY package-lock.json .
RUN npm install
RUN gem install bundler --version 2.3.9 && bundle install
# Copy application
COPY . .
RUN mkdir -p tmp && mkdir -p tmp/pids
COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
CMD ["rails", "server", "-b", "0.0.0.0"]