We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96f16be commit 3c05968Copy full SHA for 3c05968
1 file changed
Dockerfile
@@ -7,9 +7,13 @@ RUN apk add build-base cmake git bash autoconf automake libtool texinfo patch pk
7
RUN cd /src && mkdir build && cd build && cmake .. && make -j$(nproc)
8
9
# Second stage of Dockerfile
10
-FROM alpine:latest
+FROM alpine:latest
11
12
-ENV VITASDK /home/user/vitasdk
+ENV VITASDK /usr/local/vitasdk
13
ENV PATH ${VITASDK}/bin:$PATH
14
15
-COPY --from=0 /src/build/vitasdk ${VITASDK}
+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