File tree 3 files changed +120
-135
lines changed
3 files changed +120
-135
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,11 @@ ARG AZLINUX_BASE_VERSION=master
2
2
3
3
FROM quay.io/cdis/python-nginx-al:${AZLINUX_BASE_VERSION} AS base
4
4
5
- # FROM 707767160287.dkr.ecr.us-east-1.amazonaws.com/gen3/python-nginx-al2:feat_python-nginx AS base
6
-
7
5
ENV appname=peregrine
8
6
9
7
WORKDIR /${appname}
10
8
11
- RUN chown -R gen3:gen3 /$appname
9
+ RUN chown -R gen3:gen3 /${ appname}
12
10
13
11
# Builder stage
14
12
FROM base AS builder
@@ -19,22 +17,22 @@ COPY poetry.lock pyproject.toml /${appname}/
19
17
20
18
RUN poetry install -vv --only main --no-interaction
21
19
22
- COPY --chown=gen3:gen3 . /$appname
20
+ COPY --chown=gen3:gen3 . /${ appname}
23
21
24
22
# Run poetry again so this app itself gets installed too
25
23
RUN poetry install --without dev --no-interaction
26
24
27
- RUN git config --global --add safe.directory /${appname} && COMMIT=`git rev-parse HEAD` && echo "COMMIT=\" ${COMMIT}\" " > /$appname/version_data.py \
28
- && VERSION=`git describe --always --tags` && echo "VERSION=\" ${VERSION}\" " >> /$appname/version_data.py
25
+ RUN git config --global --add safe.directory /${appname} && COMMIT=`git rev-parse HEAD` && echo "COMMIT=\" ${COMMIT}\" " > /${ appname} /version_data.py \
26
+ && VERSION=`git describe --always --tags` && echo "VERSION=\" ${VERSION}\" " >> /${ appname} /version_data.py
29
27
30
28
# Final stage
31
29
FROM base
32
30
33
- COPY --from=builder /$appname /$appname
31
+ COPY --from=builder /${ appname} /${ appname}
34
32
35
33
# Switch to non-root user 'gen3' for the serving process
36
34
USER gen3
37
35
38
- WORKDIR /$appname
36
+ WORKDIR /${ appname}
39
37
40
38
CMD ["/bin/bash" , "-c" , "/${appname}/dockerrun.bash" ]
You can’t perform that action at this time.
0 commit comments