Alessio 3a677c11dd
Some checks failed
Build / build-docker (push) Successful in 6s
Build / test (push) Failing after 54s
Build / build-apt (push) Has been skipped
Install nodejs a different way so it doesn't have one 8 major versions out of date lmao
2025-02-21 14:05:27 -08:00

18 lines
848 B
Docker

from ubuntu:jammy
run apt update && apt install -y sudo curl wget build-essential sqlite3 jq git musl-dev musl-tools
# Install go and golangci-lint
run wget https://go.dev/dl/go1.21.4.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.21.4.linux-amd64.tar.gz
env PATH="$PATH:/usr/local/go/bin"
run curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/go/bin v1.59.1
# Install project dependencies (so they don't have to be reinstalled on every CI run)
run git clone https://gitlab.com/offline-twitter/twitter_offline_engine.git && cd twitter_offline_engine && go install ./... && cd .. && rm -r twitter_offline_engine
# For SSH upload
copy known_hosts /root/.ssh/known_hosts
# Install NodeJS v20
run curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs