Browse Source

Fixed Dockerfile

A missing slash caused me such a headache
pull/48/head
Steven vanZyl 3 months ago
parent
commit
a89a7c2639
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Dockerfile

+ 4
- 2
Dockerfile View File

@@ -32,6 +32,8 @@ FROM alpine
32 32
 # Set the workdir
33 33
 WORKDIR /
34 34
 
35
+USER root
36
+
35 37
 # Create the user's home folder and move to it
36 38
 RUN mkdir -p /home/observatory
37 39
 WORKDIR /home/observatory
@@ -43,7 +45,7 @@ RUN adduser -h /home/observatory -S observatory
43 45
 RUN mkdir -p /var/lib/observatory
44 46
 
45 47
 # Change the owner of the database folder
46
-RUN chown -R observatory /var/lib/observatory
48
+RUN chown -R observatory /var/lib/observatory/
47 49
 
48 50
 # Switch to the user
49 51
 USER observatory
@@ -55,4 +57,4 @@ COPY --from=builder /build/target/x86_64-unknown-linux-musl/release/observatory
55 57
 EXPOSE 8000
56 58
 
57 59
 # Run Observatory
58
-CMD ./observatory
60
+CMD ./observatory

Loading…
Cancel
Save