Skip to content

Commit

Permalink
fix: add env variables to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed May 2, 2024
1 parent e3c9b26 commit 93ece38
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions keylistCron/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
FROM alpine:latest

# Define build arguments
ARG DB_HOST
ARG DB_PORT
ARG DB_NAME
ARG DB_USER
ARG DB_PASSWORD

# Set environment variables
ENV DB_HOST=$DB_HOST
ENV DB_PORT=$DB_PORT
ENV DB_NAME=$DB_NAME
ENV DB_USER=$DB_USER
ENV DB_PASSWORD=$DB_PASSWORD

RUN apk update && apk add --no-cache curl postgresql-client jq
WORKDIR /app

Expand Down

0 comments on commit 93ece38

Please sign in to comment.