Advertisement
galvani

Dockerfile

Jun 18th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. FROM ubuntu
  2. MAINTAINER Galvani Júnior <juniior.lima@gmail.com>
  3. ADD app /app
  4. ADD postgresql-10.4 /postgresql-10.4
  5. RUN apt-get update && apt-get install -y build-essential && apt-get install -y gcc && apt-get install -y python3 && apt-get install -y python3-pip
  6. RUN cd /postgresql-10.4 && ./configure --without-zlib --without-readline && make && make install
  7. RUN adduser postgres --disabled-password --gecos "" && mkdir /usr/local/pgsql/data && chown postgres /usr/local/pgsql/data && cd /postgresql-10.4/contrib/cube && make && make install
  8. USER postgres
  9. RUN /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data && /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data
  10. EXPOSE 5000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement