-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #427 from mboudet/dev
Update Flask (and the rest)
- Loading branch information
Showing
8 changed files
with
794 additions
and
844 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class PrefixMiddleware(object): | ||
|
||
def __init__(self, app, prefix=''): | ||
self.app = app | ||
self.prefix = prefix | ||
|
||
def __call__(self, environ, start_response): | ||
if self.prefix is not None: | ||
environ['SCRIPT_NAME'] = self.prefix | ||
path_info = environ['PATH_INFO'] | ||
if path_info.startswith(self.prefix): | ||
environ['PATH_INFO'] = path_info[len(self.prefix):] | ||
return self.app(environ, start_response) |
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,4 +1,4 @@ | ||
FROM quay.io/askomics/flaskomics-base:4.0.0-alpine3.13 AS builder | ||
FROM quay.io/askomics/flaskomics-base:4.6.0-alpine3.19 AS builder | ||
MAINTAINER "Xavier Garnier <[email protected]>" | ||
|
||
COPY . /askomics | ||
|
@@ -7,7 +7,7 @@ WORKDIR /askomics | |
RUN make clean-config fast-install build | ||
|
||
# Final image | ||
FROM alpine:3.13 | ||
FROM alpine:3.19 | ||
|
||
WORKDIR /askomics | ||
RUN apk add --no-cache make python3 bash git libc-dev libstdc++ nodejs-current npm openldap-dev | ||
|
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,4 +1,4 @@ | ||
FROM quay.io/askomics/flaskomics-base:4.0.0-alpine3.13 AS builder | ||
FROM quay.io/askomics/flaskomics-base:4.6.0-alpine3.19 AS builder | ||
MAINTAINER "Xavier Garnier <[email protected]>" | ||
|
||
COPY . /askomics | ||
|
@@ -7,7 +7,7 @@ WORKDIR /askomics | |
RUN make clean-config fast-install | ||
|
||
# Final image | ||
FROM alpine:3.13 | ||
FROM alpine:3.19 | ||
|
||
WORKDIR /askomics | ||
RUN apk add --no-cache make python3 bash git libc-dev libstdc++ openldap-dev | ||
|