added postgres dockerfile

This commit is contained in:
Yannic Kilcher
2023-01-17 11:13:43 +01:00
parent cd63df1cb2
commit ab90d7810a
2 changed files with 26 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
name: Build OASST Postgres image
on:
push:
branches:
- main
paths:
- docker/Dockerfile.postgres
jobs:
build-postgres:
uses: ./.github/workflows/docker-build.yaml
with:
image-name: oasst-postgres
context: ./docker/
dockerfile: docker/Dockerfile.postgres
build-args: ""
+9
View File
@@ -0,0 +1,9 @@
FROM postgres
# install unzip
RUN apt-get update && apt-get install -y unzip curl && rm -rf /var/lib/apt/lists/*
# download aws cli
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install