Skip to content

Commit

Permalink
having since Docker build for dev/prod
Browse files Browse the repository at this point in the history
  • Loading branch information
pushyamig committed Nov 25, 2024
1 parent d52b101 commit afbf7c0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: IPT Build/Release
name: Build/Release

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion deploy/supervisor_docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ startsecs=5
startretries=2

[program:frontend]
command=npm run watch
command=bash -c "if [ \"$RUN_FRONTEND\" = \"true\" ]; then npm run watch; else tail -f /dev/null; fi"
directory=/code/frontend
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ services:
- .env
environment:
- DEBUG=True
- RUN_FRONTEND=true
redis:
image: redis:7
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
command: [ "redis-server", "--include /usr/local/etc/redis/redis.conf" ]
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ WORKDIR /code
# Sets the local timezone of the docker image
ARG TZ
ENV TZ ${TZ:-America/Detroit}
ENV RUN_FRONTEND ${RUN_FRONTEND:-false}
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# EXPOSE port 5000 to allow communication to/from server
Expand Down

0 comments on commit afbf7c0

Please sign in to comment.