Skip to content

Commit

Permalink
deployment: optional support for sqlite
Browse files Browse the repository at this point in the history
adds optional dockerfile and docker-compose with sqlite
support/config. adds make target for alternate build.

addresses sourcegraph#140
  • Loading branch information
Kevin Ard committed Oct 9, 2020
1 parent 461b1ce commit 89eecf4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sqlite3.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ WORKDIR /app
RUN apt-get install make && make build-sqlite3

#----------------------------
FROM golang:1.15-buster
FROM debian:buster

# install sqlite
RUN apt-get update && apt-get install sqlite3 && rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y --no-install-recommends \
sqlite3 ca-certificates && \
apt-get autoremove && \
apt-get purge && \
rm -rf /var/lib/apt/lists/*

WORKDIR /app

Expand Down

0 comments on commit 89eecf4

Please sign in to comment.