Skip to content

Commit d861338

Browse files
committed
fix: dockerfile
Signed-off-by: Me0wo <152751263+Sn0wo2@users.noreply.github.com>
1 parent 9bf405a commit d861338

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dockers:
5252
dockerfile: Dockerfile.goreleaser
5353
use: buildx
5454
extra_files:
55-
- config.yml
55+
- data/config.yml
5656
- Frontend/static
5757

5858
- goos: linux
@@ -62,7 +62,7 @@ dockers:
6262
dockerfile: Dockerfile.goreleaser
6363
use: buildx
6464
extra_files:
65-
- config.yml
65+
- data/config.yml
6666
- Frontend/static
6767

6868
docker_manifests:

Dockerfile.goreleaser

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ COPY . /build/
66
WORKDIR /build/
77

88
RUN mkdir -p /app/static && \
9-
mv QuickNote config.yml /app/ && \
9+
mv QuickNote /app/ && \
10+
mv config.yml /app/data && \
1011
mv * /app/static/ && \
1112
find /app -type d -print0 | xargs -0 chmod 555 && \
1213
find /app -type f -print0 | xargs -0 chmod 444 && \

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ services:
66
ports:
77
- "3000:3000"
88
volumes:
9-
- ./data:/opt/quicknote/data
9+
- quicknote_data:/opt/quicknote/data
10+
11+
volumes:
12+
quicknote_data:

0 commit comments

Comments
 (0)