forked from hexlet-basics/hexlet-basics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (36 loc) · 1.43 KB
/
Dockerfile
File metadata and controls
52 lines (36 loc) · 1.43 KB
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
43
44
45
46
47
48
49
50
51
52
FROM ruby:3.2.0
# RUN bundle config --global frozen 1
ENV NODE_VERSION 19.x
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
RUN apt-get install -y nodejs git
ENV DOCKER_CHANNEL stable
ENV DOCKER_VERSION 20.10.21
RUN curl -fsSL "https://download.docker.com/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" \
| tar -xzC /usr/local/bin --strip=1 docker/docker
RUN apt-get update && apt-get install -y \
build-essential \
bash-completion \
libpq-dev \
libsqlite3-dev \
libvips42 \
&& rm -rf /var/lib/apt/lists/*
# NOTE: for sorbet
WORKDIR /var/tmp
RUN wget -O watchman.zip https://github.com/facebook/watchman/releases/download/v2022.12.26.00/watchman-v2022.12.26.00-linux.zip && unzip watchman.zip
WORKDIR /var/tmp/watchman-v2022.12.26.00-linux
RUN mkdir -p /usr/local/{bin,lib} /usr/local/var/run/watchman
RUN cp bin/* /usr/local/bin
RUN cp lib/* /usr/local/lib
RUN chmod 755 /usr/local/bin/watchman
RUN chmod 2777 /usr/local/var/run/watchman
# ENV BUNDLE_PATH /root/hexlet-basics/vendor/bundle
ENV PROJECT_ROOT /opt/projects/hexlet-basics
RUN mkdir -p ${PROJECT_ROOT}
# NOTE: for initial make project-setup
RUN mkdir -p ${PROJECT_ROOT}/public
WORKDIR ${PROJECT_ROOT}
ENV BUNDLE_APP_CONFIG ${PROJECT_ROOT}/.bundle/config
ENV GEM_HOME ${PROJECT_ROOT}/vendor/bundle
ENV BUNDLE_PATH ${GEM_HOME}
# RUN bundle config build.nokogiri --use-system-libraries
# BUNDLE_BUILD__NOKOGIRI: "--use-system-libraries"