Skip to content

Commit 7eb783f

Browse files
author
bgrahammonf
committed
Including restricted_filters.json
1 parent 884f8c4 commit 7eb783f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

backend/Dockerfile_build_and_publish

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ RUN apt-get update && apt-get install -y \
3636
&& rm -rf /var/lib/apt/lists/*
3737

3838
# Set working directory
39-
WORKDIR /usr/src/app
39+
WORKDIR /app
4040

4141
# Copy the compiled binary from the builder stage
42-
COPY --from=builder /usr/src/app/target/release/backend /usr/local/bin/backend
42+
COPY --from=builder /usr/src/app/target/release/backend /app/backend
43+
44+
# Copy the restricted filters configuration
45+
COPY --from=builder /usr/src/app/restricted_filters.json /app/restricted_filters.json
4346

4447
# Expose WebSocket port
4548
EXPOSE 8443
4649

47-
# Set entrypoint
48-
ENTRYPOINT ["backend"]
50+
# Set entrypoint using absolute path or relative to WORKDIR
51+
ENTRYPOINT ["./backend"]
4952
CMD ["--server-addr", "0.0.0.0:8443"]
50-

0 commit comments

Comments
 (0)