-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
42 lines (33 loc) · 830 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM ruby:3.4.1-slim-bullseye
ARG APP_NAME=phishin
ENV APP_NAME=${APP_NAME} \
INSTALL_PATH=/${APP_NAME} \
IN_DOCKER=true
# Install system dependencies
RUN apt-get update -qq && \
apt-get install -y \
build-essential \
chromium-driver \
curl \
ffmpeg \
git \
libpq-dev \
libsndfile-dev \
memcached \
shared-mime-info \
imagemagick \
libmagickwand-dev \
libjpeg-dev \
&& apt-get clean
# Install Node and Yarn
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs
RUN npm install -g yarn
WORKDIR $INSTALL_PATH
COPY Gemfile Gemfile.lock ./
RUN gem install bundler && bundle install
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
EXPOSE 3000
CMD bundle exec puma -b tcp://0.0.0.0:3000