-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (28 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
34 lines (28 loc) · 1.01 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
FROM circleci/ruby:2.5.1
# Install EB CLI
RUN sudo apt-get update && \
sudo apt-get -y upgrade && \
sudo apt-get install python3-pip && \
pip3 install awsebcli --upgrade --user
RUN sudo apt-get install \
# for closure compiler
default-jre \
# for paperclip-av-transcoder
ffmpeg
# Install Node.js and Yarn for Webpack(er)
RUN \
sudo curl -sL https://deb.nodesource.com/setup_18.x | sudo bash - && \
sudo apt-get install -y nodejs && \
sudo curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && \
sudo apt-get update && sudo apt-get install yarn
# Install AWS CLI
RUN sudo curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
sudo unzip awscliv2.zip && \
sudo ./aws/install && \
aws --version
# Install nginx
RUN sudo apt-get update && \
sudo apt-get install nginx
ENTRYPOINT /bin/bash
ENV PATH="/home/circleci/.local/bin:${PATH}"