-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating for a DockerCompose Dev environment.
- Loading branch information
1 parent
5b9c768
commit dedcf82
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM python:3.10 | ||
|
||
ARG ENVIRONMENT=development | ||
|
||
RUN useradd --create-home avraeservice | ||
USER avraeservice | ||
WORKDIR /home/avraeservice | ||
|
||
COPY --chown=avraeservice:avraeservice requirements.txt . | ||
RUN pip install --user --no-warn-script-location -r requirements.txt | ||
|
||
COPY --chown=avraeservice:avraeservice . . | ||
|
||
COPY --chown=avraeservice:avraeservice docker/config-${ENVIRONMENT}.py config.py | ||
|
||
# Download AWS pubkey to connect to documentDB | ||
RUN wget https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem | ||
|
||
ENTRYPOINT .local/bin/gunicorn --workers 2 --bind 0:8000 app:app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '3.8' | ||
|
||
services: | ||
app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile-dev | ||
container_name: avrae_io | ||
ports: | ||
- "8000:8080" | ||
environment: | ||
- NODE_ENV=development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters