Skip to content

Commit

Permalink
Add permission fix step in Dockerfiles and update taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardolat committed Nov 2, 2024
1 parent ebdd8f4 commit 8db4214
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ RUN go mod download
# Copy the rest of the files
COPY . .

# Fix permissions if needed
RUN task fixperms

# Build the app
RUN task build

Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile.cicd
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,6 @@ RUN go mod download

# Copy the rest of the files
COPY . .

# Fix permissions if needed
RUN task fixperms
4 changes: 0 additions & 4 deletions scripts/fixperms.sh

This file was deleted.

4 changes: 2 additions & 2 deletions taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ tasks:
- rm -rf ./tmp
- rm -rf ./dist

fixperms: # Fixes the permissions of the files in the project
fixperms:
desc: Fixes the permissions of the files in the project
cmd: ./scripts/fixperms.sh
cmd: chmod -R 777 ./

0 comments on commit 8db4214

Please sign in to comment.