Skip to content

Commit

Permalink
Docker: fix prod for cronjobs
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 4, 2024
1 parent 1d9c924 commit ecbfae8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 240 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.cron
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ USER cronuser
COPY ./swatscraper/go.mod ./swatscraper/go.sum ./
RUN go mod download

COPY --chown=cronuser:cronuser ./.env ./.env
COPY --chown=cronuser:cronuser ./swatscraper/.env ./
COPY --chown=cronuser:cronuser ./swatscraper/*.go ./

RUN GOCACHE=/app/.cache CGO_ENABLED=0 GOOS=linux go build -o /app/swatscraper
Expand Down
24 changes: 0 additions & 24 deletions components/counter.tsx

This file was deleted.

215 changes: 0 additions & 215 deletions components/icons.tsx

This file was deleted.

4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ services:
- scheduler-dbdata:/var/lib/postgresql/data
env_file:
- .env
ports:
- 5432:5432
networks:
- internal

Expand All @@ -42,6 +44,8 @@ services:
context: .
dockerfile: ./Dockerfile.cron
restart: unless-stopped
env_file:
- .env
depends_on:
- scheduler-db
networks:
Expand Down

0 comments on commit ecbfae8

Please sign in to comment.