This commit is contained in:
parent
25a20d9e3b
commit
51e4edd37a
1 changed files with 5 additions and 5 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -48,17 +48,17 @@ RUN adduser \
|
|||
--uid "${UID}" \
|
||||
imnyang
|
||||
|
||||
RUN mkdir -p /app
|
||||
RUN chmod -R 755 /app
|
||||
RUN mkdir -p /app/uploads
|
||||
RUN chown -R imnyang:imnyang /app
|
||||
|
||||
# Drop privileges for runtime.
|
||||
USER imnyang
|
||||
|
||||
# Copy only the compiled binary from the build stage.
|
||||
COPY --from=build /bin/server /app/
|
||||
|
||||
RUN chown -R imnyang:imnyang /app
|
||||
RUN chmod -R 755 /app
|
||||
|
||||
RUN mkdir -p /app/uploads
|
||||
|
||||
# Rocket: listen on all interfaces inside the container.
|
||||
ENV ROCKET_ADDRESS=0.0.0.0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue