Fix Dockerfile - Use /app/ directory for binary
Some checks failed
Lint and Build / Lint (push) Failing after 2s
Lint and Build / Build (push) Has been skipped
Lint and Build / Docker Build (push) Has been skipped

This commit is contained in:
goose 2026-03-05 10:17:28 -03:00
parent 9691b61aef
commit 2231cc11c8

View file

@ -37,10 +37,12 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy the binary from builder stage # 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 port
EXPOSE 8000 EXPOSE 8000
# Run the application # Make the binary executable and run it
CMD ["normogen-backend"] RUN chmod +x /app/normogen-backend
CMD ["/app/normogen-backend"]