Skip to content

Commit

Permalink
Clean up dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aleda145 committed Aug 19, 2022
1 parent da5a286 commit dc20ac1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ RUN go mod download

COPY ./pocketbase ./pocketbase
RUN go build -o /pocketbase pocketbase/main.go
#checkov:skip=CKV_DOCKER_4: Ensure that COPY is used instead of ADD in Dockerfiles
# Because we want to add from a remote URL, and there is no reason not to trust benbjohnson

ADD https://github.com/benbjohnson/litestream/releases/download/v0.3.9/litestream-v0.3.9-linux-amd64.tar.gz /tmp/litestream.tar.gz
RUN tar -C /usr/local/bin -xzf /tmp/litestream.tar.gz

Expand All @@ -33,7 +32,5 @@ COPY run.sh .
EXPOSE 8090
# TODO add a health check to the API
HEALTHCHECK NONE
#checkov:skip=CKV_DOCKER_3: Ensure that a user for the container has been created
# Because it will run as root on the VM anyway, and there is nothing else there but a docker container

ENTRYPOINT ["/app/run.sh"]

0 comments on commit dc20ac1

Please sign in to comment.