mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-01-24 13:38:26 -06:00
Add permission fix step in Dockerfiles and update taskfile
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -100,3 +100,6 @@ RUN go mod download
|
||||
|
||||
# Copy the rest of the files
|
||||
COPY . .
|
||||
|
||||
# Fix permissions if needed
|
||||
RUN task fixperms
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Fix permissions of all files in the current directory and subdirectories
|
||||
chmod -R 777 ./
|
||||
@@ -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 ./
|
||||
|
||||
Reference in New Issue
Block a user