Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Use preview image locally and latest image in production
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Apr 8, 2024
1 parent 21861c3 commit 75b7b69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM ghcr.io/nationalarchives/tna-python:latest
ARG IMAGE_TAG=latest

FROM ghcr.io/nationalarchives/tna-python:"$IMAGE_TAG"

# Copy in the application code
COPY --chown=app . .
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ version: "3"

services:
app:
build: .
build:
context: .
args:
IMAGE_TAG: preview
environment:
- ENVIRONMENT=develop
- SECRET_KEY=abc123
Expand Down

0 comments on commit 75b7b69

Please sign in to comment.