Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5dae939

Browse files
Update Dockerfile
1 parent b9ed7e5 commit 5dae939

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎samples/imagedims-python/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM fnproject/python:3.6-dev as build-stage
22
WORKDIR /function
33
ADD requirements.txt /function/
4-
RUN pip3 install --no-cache --no-cache-dir --upgrade pip && \
5-
pip3 install --target /python/ --no-cache --no-cache-dir -r requirements.txt &&\
6-
rm -fr ~/.cache/pip /tmp* requirements.txt func.yaml Dockerfile .venv &&\
7-
chmod -R o+r /function
4+
5+
RUNpip3 install --target /python/ --no-cache --no-cache-dir -r requirements.txt &&\
6+
rm -fr ~/.cache/pip /tmp* requirements.txt func.yaml Dockerfile .venv &&\
7+
chmod -R o+r /python
88
ADD . /function/
99
RUN rm -fr /function/.pip_cache
1010

@@ -14,8 +14,8 @@ RUN microdnf install oracle-epel-release-el8 &&\
1414
microdnf remove oracle-epel-release-el8 &&\
1515
microdnf clean all
1616
WORKDIR /function
17-
COPY --from=build-stage /function /function
1817
COPY --from=build-stage /python /python
19-
ENV PYTHONPATH=/python:/function
18+
COPY --from=build-stage /function /function
19+
RUN chmod -R o+r /function
20+
ENV PYTHONPATH=/function:/python
2021
ENTRYPOINT ["/python/bin/fdk", "/function/func.py", "handler"]
21-

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /