Update Dockerfile
This commit is contained in:
+8
-8
@@ -1,4 +1,4 @@
|
||||
FROM ubuntu:14.04
|
||||
FROM debian:jessie
|
||||
|
||||
ENV POSTGREST_VERSION 0.3.0.4
|
||||
ENV POSTGREST_SCHEMA public
|
||||
@@ -7,12 +7,14 @@ ENV POSTGREST_JWT_SECRET thisisnotarealsecret
|
||||
ENV POSTGREST_MAX_ROWS 1000000
|
||||
ENV POSTGREST_POOL 200
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y tar xz-utils wget libpq-dev
|
||||
RUN apt-get update && \
|
||||
apt-get install -y tar xz-utils wget libpq-dev && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
RUN wget http://github.com/begriffs/postgrest/releases/download/v${POSTGREST_VERSION}/postgrest-${POSTGREST_VERSION}-ubuntu.tar.xz
|
||||
RUN tar --xz -xvf postgrest-${POSTGREST_VERSION}-ubuntu.tar.xz
|
||||
RUN mv postgrest /usr/local/bin/postgrest
|
||||
RUN wget http://github.com/begriffs/postgrest/releases/download/v${POSTGREST_VERSION}/postgrest-${POSTGREST_VERSION}-ubuntu.tar.xz && \
|
||||
tar --xz -xvf postgrest-${POSTGREST_VERSION}-ubuntu.tar.xz && \
|
||||
mv postgrest /usr/local/bin/postgrest && \
|
||||
rm postgrest-${POSTGREST_VERSION}-ubuntu.tar.xz
|
||||
|
||||
CMD postgrest postgres://${PG_ENV_POSTGRES_USER}:${PG_ENV_POSTGRES_PASSWORD}@${PG_PORT_5432_TCP_ADDR}:${PG_PORT_5432_TCP_PORT}/${PG_ENV_POSTGRES_DB} \
|
||||
--port 3000 \
|
||||
@@ -23,5 +25,3 @@ CMD postgrest postgres://${PG_ENV_POSTGRES_USER}:${PG_ENV_POSTGRES_PASSWORD}@${P
|
||||
--max-rows ${POSTGREST_MAX_ROWS}
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
Reference in New Issue
Block a user