forked from kenkoooo/AtCoderProblems
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
14 lines (12 loc) · 668 Bytes
/
Dockerfile
File metadata and controls
14 lines (12 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM ubuntu
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install openjdk-8-jdk wget gnupg -y && \
echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 && \
apt-get update && \
apt-get install webpack npm sbt postgresql -y && \
service postgresql start && \
su postgres -c "psql -c \"CREATE ROLE kenkoooo WITH LOGIN PASSWORD 'pass'\"; psql -c \"CREATE DATABASE test\"" && \
sed -i -e "s/peer/md5/" /etc/postgresql/10/main/pg_hba.conf && \
service postgresql restart