Skip to content

Commit af23863

Browse files
committed
update dockerfile
1 parent eb51f00 commit af23863

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.dockerignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ dist
55

66
.envrc
77
.gitignore
8-
docker-compose.yml
8+
.dockerignore
9+
compose.yml
10+
compose-dev.yml
911
Dockerfile
1012
goreleaser.yml
1113
LICENSE.md

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ RUN groupadd -g $GID smallweb && useradd -m -s /bin/bash -u $UID -g $GID smallwe
2424
USER smallweb
2525
WORKDIR /home/smallweb
2626
EXPOSE 7777 2222
27+
VOLUME /home/smallweb/workspace
2728
ENTRYPOINT ["/usr/local/bin/smallweb"]
2829
CMD [ "up", "--enable-crons", "--addr", ":7777", "--ssh-addr", ":2222"]

compose.dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ services:
88
- 7777:7777
99
- 2222:2222
1010
volumes:
11-
- ./empty:/home/smallweb/workspace
11+
- ./workspace:/home/smallweb/workspace
1212
environment:
1313
- SMALLWEB_DIR=/home/smallweb/workspace

0 commit comments

Comments
 (0)