Skip to content

Commit

Permalink
Fixing docker image (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrlee authored Nov 19, 2020
1 parent c89f6f8 commit 472adbb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,11 @@ COPY --from=build --chown=appuser:appgroup \
./

COPY --from=build --chown=appuser:appgroup \
/app/build ./build
/app/assets ./assets

COPY --from=build --chown=appuser:appgroup \
/app/node_modules ./node_modules

COPY --from=build --chown=appuser:appgroup \
/app/views ./views

RUN npm prune --production

EXPOSE 3000
Expand Down
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,22 @@ services:
- SPRING_PROFILES_ACTIVE=dev
- DELIUS_ENABLED=false

app:
build: .
networks:
- hmpps
depends_on: [redis]
ports:
- "3000:3000"
environment:
- REDIS_HOST=redis
- HMPPS_AUTH_EXTERNAL_URL=http://localhost:9090/auth
- HMPPS_AUTH_URL=http://hmpps-auth:8080/auth
# These will need to match new creds in the seed auth service auth
- API_CLIENT_ID=client-id
- API_CLIENT_SECRET=client-secret
- SYSTEM_CLIENT_ID=system-client-id
- SYSTEM_CLIENT_SECRET=system-client-secret

networks:
hmpps:

0 comments on commit 472adbb

Please sign in to comment.