mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-15 10:33:53 +00:00
Create custom dockerfile
This commit is contained in:
1 parent
6b7c9e5de9
commit
426f8da0ee
4 files changed
+68
-9
No files matched your search
@@ -0,0 +1,20 @@
|
||||
FROM postgres:12.1
|
||||
WORKDIR /app
|
||||
|
||||
ENV PGHOST=localhost
|
||||
ENV PGDATABASE=kata
|
||||
ENV PGPASSWORD=admin
|
||||
ENV PGUSER=postgres
|
||||
ENV POSTGRES_PASSWORD=admin
|
||||
ENV PGDATA /var/lib/postgresql/data_local
|
||||
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates wget \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ADD ./*.sh /app/
|
||||
ADD ./*.sql /app/
|
||||
RUN chmod +x ./*.sh \
|
||||
&& ./initializeDocker.sh
|
||||
Reference in new issue
Block a user