mirror of
https://github.com/daniviga/bite.git
synced 2024-11-23 05:16:13 +01:00
Reuse build cache in bite docker
This commit is contained in:
parent
be4c226955
commit
b0fe12f594
|
@ -13,12 +13,11 @@ RUN apk update && apk add --no-cache postgresql-libs \
|
||||||
| tar -xz -C /usr/local/bin
|
| tar -xz -C /usr/local/bin
|
||||||
COPY --from=builder /usr/local/lib/python3.8/site-packages/ /usr/local/lib/python3.8/site-packages/
|
COPY --from=builder /usr/local/lib/python3.8/site-packages/ /usr/local/lib/python3.8/site-packages/
|
||||||
COPY --chown=1000:1000 bite /srv/app/bite
|
COPY --chown=1000:1000 bite /srv/app/bite
|
||||||
COPY --chown=1000:1000 requirements.txt /tmp/requirements.txt
|
COPY --chown=1000:1000 requirements.txt /srv/app/bite/requirements.txt
|
||||||
|
|
||||||
RUN mkdir -p /srv/appdata/bite/static \
|
RUN pip3 install -r /srv/app/bite/requirements.txt \
|
||||||
&& chown -R 1000:1000 /srv/appdata/bite \
|
&& mkdir -p /srv/appdata/bite/static \
|
||||||
&& pip3 install -r /tmp/requirements.txt \
|
&& chown -R 1000:1000 /srv/appdata/bite
|
||||||
&& rm /tmp/requirements.txt
|
|
||||||
|
|
||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
WORKDIR /srv/app/bite
|
WORKDIR /srv/app/bite
|
||||||
|
|
Loading…
Reference in New Issue
Block a user