This commit is contained in:
2020-05-23 14:45:23 -04:00
parent 21403845aa
commit e32ba92aa7
2 changed files with 17 additions and 5 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM ubuntu:20.04 as build
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update
RUN apt install -y cmake postgresql-server-dev-12 -y
WORKDIR /build/
COPY . /build/
RUN cmake .
FROM postgres:12
COPY --from=build /build/libhamming.so /usr/lib/libhamming.so
COPY install.sh /docker-entrypoint-initdb.d/init-user-db.sh