Skip to content

Commit 3c05968

Browse files
authored
fix: workaround for pkgconfig / default user
1 parent 96f16be commit 3c05968

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ RUN apk add build-base cmake git bash autoconf automake libtool texinfo patch pk
77
RUN cd /src && mkdir build && cd build && cmake .. && make -j$(nproc)
88

99
# Second stage of Dockerfile
10-
FROM alpine:latest
10+
FROM alpine:latest
1111

12-
ENV VITASDK /home/user/vitasdk
12+
ENV VITASDK /usr/local/vitasdk
1313
ENV PATH ${VITASDK}/bin:$PATH
1414

15-
COPY --from=0 /src/build/vitasdk ${VITASDK}
15+
RUN adduser -D user &&\
16+
echo "export VITASDK=${VITASDK}" > /etc/profile.d/vitasdk.sh && \
17+
echo 'export PATH=$PATH:$VITASDK/bin' >> /etc/profile.d/vitasdk.sh
18+
19+
COPY --from=0 --chown=user /src/build/vitasdk ${VITASDK}

0 commit comments

Comments
 (0)