Fix Dockerfile - Use /app/ directory for binary
This commit is contained in:
parent
9691b61aef
commit
2231cc11c8
1 changed files with 5 additions and 3 deletions
|
|
@ -37,10 +37,12 @@ RUN apt-get update && apt-get install -y \
|
|||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy the binary from builder stage
|
||||
COPY --from=builder /app/target/release/normogen-backend /usr/local/bin/normogen-backend
|
||||
COPY --from=builder /app/target/release/normogen-backend /app/normogen-backend
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8000
|
||||
|
||||
# Run the application
|
||||
CMD ["normogen-backend"]
|
||||
# Make the binary executable and run it
|
||||
RUN chmod +x /app/normogen-backend
|
||||
|
||||
CMD ["/app/normogen-backend"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue