Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions synkronus/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ COPY . .

# Build the application with version from build arg
# Version is automatically derived from git tags in CI and passed as build arg
# Defaults to "dev" for local builds without tags
ARG SYNKRONUS_VERSION=dev
# Defaults to a semantic version for local builds without tags (middleware requires semver)
ARG SYNKRONUS_VERSION=1.0.0
ENV CGO_ENABLED=0 GOOS=linux
RUN echo "Building Synkronus with version: ${SYNKRONUS_VERSION}" && \
go build -a -ldflags="-w -s -X github.com/opendataensemble/synkronus/pkg/version.version=${SYNKRONUS_VERSION}" -o synkronus ./cmd/synkronus
Expand Down
5 changes: 4 additions & 1 deletion synkronus/docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ services:
# Use pre-built image from GitHub Container Registry
image: ghcr.io/opendataensemble/synkronus:latest
# Or build locally for development:
# build: .
# build:
# context: .
# args:
# SYNKRONUS_VERSION: ${SYNKRONUS_VERSION:-1.0.0}
expose:
- "8080"
# Only expose port directly if not using nginx:
Expand Down
Loading