Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammyjo20 authored Jul 28, 2024
1 parent e60ea51 commit 72b6c2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM sammyjo20/ssh-php:latest

USER root

RUN apt update && apt install composer -y
RUN apk update && apk add composer

# Copy all files

Expand All @@ -16,6 +16,10 @@ COPY ./composer.lock ./

RUN ln -s ./src/index.php ./index.php

# Update the server's ownership

RUN chown -R server:server /home/server

# Switch back to a lower privaledged user

USER server
Expand Down

0 comments on commit 72b6c2a

Please sign in to comment.