-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
37 lines (26 loc) · 1.01 KB
/
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
# This Dockerfile might not follow best practices, but that is an intentional
# choice to have this Dockerfile use the install scripts that users use in the tutorial.
FROM ubuntu:latest
# Install system dependencies
RUN apt update && apt install -y bash curl jq git make sed ranger vim golang && apt clean
# Set the working directory
WORKDIR /app
# Make sure GOPATH is set
ENV GOPATH /usr/local/go
ENV PATH $GOPATH/bin:$PATH
# Install Rollkit dependencies
RUN (curl -sSL https://rollkit.dev/install.sh | sh -s v0.13.5) && go clean -modcache
# Install Artela rollup
RUN mkdir -p /app/artela-rollkit
COPY . /app/artela-rollkit
COPY ./.artroll /root/.artroll
# Update the working directory
WORKDIR /app/artela-rollkit
# Initialize the Rollkit configuration
RUN rollkit toml init
# Edit rollkit.toml config_dir
RUN sed -i 's/config_dir = "artroll"/config_dir = "\/root\/\.artroll"/g' rollkit.toml
# Run base rollkit command to download packages
RUN rollkit && go clean -modcache
# Keep the container running
CMD tail -F /dev/null