All checks were successful
Build Docker / BuildImage (push) Successful in 2m23s
12 lines
310 B
Docker
12 lines
310 B
Docker
# Start from a lightweight nginx base image
|
|
FROM nginx:alpine
|
|
|
|
# Set environment variable with a default (can be overridden at runtime)
|
|
ENV REDIRECT_URL="https://example.com"
|
|
|
|
# Copy in a custom nginx template
|
|
COPY default.conf.template /etc/nginx/templates/default.conf.template
|
|
|
|
# Expose HTTP port
|
|
EXPOSE 80
|