-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
aminvsf
committed
Jul 30, 2023
1 parent
c3c9a7a
commit f841509
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |