Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aminvsf committed Jul 30, 2023
1 parent c3c9a7a commit f841509
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ubuntu:22.04

# Timezone (You can set your desired timezone!)
ENV TZ=Asia/Tehran

# Run the update.
RUN apt-get update && apt-get upgrade -y

# Install apt-utils, PostgreSQL client and s3cmd CLI.
RUN apt-get install -y apt-utils ca-certificates
RUN DEBIAN_FRONTEND=noninteractive TZ=Asia/Tehran apt-get install -y postgresql-client s3cmd

# Copy the backup script
COPY backup.sh /

# Copy the lifecycle file.
COPY lifecycle.xml /

# Make the backup script executable.
RUN chmod +x /backup.sh

0 comments on commit f841509

Please sign in to comment.