Add permission fix step in Dockerfiles and update taskfile

This commit is contained in:
Luis Eduardo Jeréz Girón
2024-11-02 09:33:57 -06:00
parent ebdd8f4b0a
commit 8db421438e
4 changed files with 8 additions and 6 deletions

View File

@@ -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

View File

@@ -100,3 +100,6 @@ RUN go mod download
# Copy the rest of the files
COPY . .
# Fix permissions if needed
RUN task fixperms

View File

@@ -1,4 +0,0 @@
#!/usr/bin/bash
# Fix permissions of all files in the current directory and subdirectories
chmod -R 777 ./

View File

@@ -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 ./