-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
35 lines (24 loc) · 932 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
# 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 docker.io/alpine:latest
# Install system dependencies
RUN apk update && apk add --no-cache bash curl jq git make sed ranger vim
# 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
# Install GM rollup
RUN bash -c "$(curl -sSL https://rollkit.dev/install-gm-rollup.sh)"
# Update the working directory
WORKDIR /app/gm
# Initialize the Rollkit configuration
RUN rollkit toml init
# Edit rollkit.toml config_dir
RUN sed -i 's/config_dir = "gm"/config_dir = "\.\/\.gm"/g' rollkit.toml
# Run base rollkit command to download packages
RUN rollkit
# Keep the container running
CMD tail -F /dev/null