-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63fc47c
commit a05d6df
Showing
2 changed files
with
44 additions
and
32 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 |
---|---|---|
@@ -1,22 +1,13 @@ | ||
FROM python:alpine | ||
FROM node:lts as build | ||
|
||
# For pete's sake do not put this on the internet | ||
|
||
RUN apk add --no-cache --update --upgrade linux-headers py3-numpy &&\ | ||
apk add --no-cache --virtual .build-deps gcc g++ zlib-dev make python3-dev py3-numpy-dev jpeg-dev | ||
|
||
RUN addgroup -S credev && adduser -S credev -G credev | ||
|
||
COPY --chown=credev:credev . /home/credev/cre_sync | ||
USER credev | ||
|
||
WORKDIR /home/credev/cre_sync | ||
|
||
RUN export PATH=$PATH:/home/credev/.local/bin &&\ | ||
pip install -r requirements.txt &&\ | ||
chmod +x docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["/home/credev/cre_sync/docker-entrypoint.sh"] | ||
WORKDIR /code | ||
COPY . /code | ||
RUN yarn install && yarn build | ||
|
||
FROM python:3.11.0 as run | ||
|
||
COPY --from=build /code /code | ||
WORKDIR /code | ||
RUN pip install -r requirements.txt gunicorn | ||
|
||
ENTRYPOINT "make dev-flask" |
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