forked from codeforpdx/recordexpungPDX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move to /src in containers to mimic local tree
- Loading branch information
1 parent
a4ef86e
commit e638837
Showing
4 changed files
with
15 additions
and
15 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
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
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
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 |
---|---|---|
|
@@ -4,10 +4,10 @@ LABEL authors="Kenichi Nakamura <[email protected]>" | |
RUN pip install pipenv | ||
RUN apk update | ||
|
||
RUN mkdir -p /var/opt/backend/expungeservice | ||
WORKDIR /var/opt/backend | ||
RUN mkdir -p /src/backend/expungeservice | ||
WORKDIR /src/backend | ||
|
||
ENV WORKON_HOME=/var/opt/venvs | ||
ENV WORKON_HOME=/src/venvs | ||
ENV LC_ALL=C.UTF-8 | ||
ENV LANG=C.UTF-8 | ||
|
||
|
@@ -19,14 +19,14 @@ FROM base AS build | |
|
||
RUN apk add build-base git libffi-dev openssl-dev postgresql-dev | ||
|
||
COPY Pipfile* setup.py /var/opt/backend/ | ||
RUN cd /var/opt/backend && pipenv install | ||
COPY Pipfile* setup.py /src/backend/ | ||
RUN cd /src/backend && pipenv install | ||
|
||
# --- | ||
|
||
FROM base | ||
|
||
COPY --from=build /var/opt/venvs /var/opt/venvs | ||
COPY --from=build /src/venvs /src/venvs | ||
|
||
EXPOSE 5000 | ||
CMD ["pipenv", "run", "uwsgi", "--py-autoreload", "1", "--http", "0.0.0.0:5000", "--module", "expungeservice.wsgi", "--die-on-term", "--uid", "nobody"] |