12 lines
736 B
Docker
12 lines
736 B
Docker
# Use Alpine because it comes with musl by default; point of this build is to staticallly compile libc
|
|
# Pinning version 1.21.4 because 1.22 crashes when compiling go-sqlite3 on something in `sqlite3-binding.c`.
|
|
from golang:1.21.4-alpine
|
|
|
|
run apk add --no-cache git sqlite-libs sqlite-dev build-base mingw-w64-gcc curl vim grep
|
|
|
|
# Install golangci-lint
|
|
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
|