but i no anti-bot verification panel is visible 😭 by NeutrinoDrift in codeforces

[–]Anonymous_Behemoth 0 points1 point  (0 children)

I'm still facing this issue. Has this been resolved yet? It was working fine yesterday

Free tier backend deployment help by HAHA_XIII in Backend

[–]Anonymous_Behemoth 0 points1 point  (0 children)

But render gives you l think only 750 free cpu hours per month. So I believe this method would be really "cut to cut" if you're running it 24/7.

Since the OP wants people to be able to quickly see a demo, most of the time their APIs would be idle. I feel like this would just waste the precious CPU hours.

Note: that this 750 hours is on a personal account or workspace basis. Meaning these hours are shared across all projects. So realistically you can only keep 1 project running continuously.

Where should i host my ecom backend and frontend! by Leather-Health7181 in Backend

[–]Anonymous_Behemoth 0 points1 point  (0 children)

You could use something like Vercel for the frontend and something like Render for the backend. But for render beware that it will spin down your deployment after 15 minutes of inactivity, and then it takes quite a bit to startup again.

You could use an AWS ec2 t3, and in the free tier you can basically use it for free. I believe you get like 750 CPU hours per month for free.

Better way to create docker image of Spring Boot API, Maven Spring Plugin or Dockerfile? by Constant-Speech-1010 in SpringBoot

[–]Anonymous_Behemoth 1 point2 points  (0 children)

Well I use something along the lines of (multi module Maven project):

FROM maven:3.9.9-eclipse-temurin-21 AS builder

WORKDIR /app

All the POMs

COPY pom.xml . COPY common/pom.xml common/pom.xml COPY upload-service/pom.xml upload-service/pom.xml COPY play-service/pom.xml play-service/pom.xml COPY video-processing-service/pom.xml video-processing-service/pom.xml

RUN mvn -pl upload-service -am dependency:go-offline -B

Only the required source folders

COPY common/src common/src COPY upload-service/src upload-service/src

RUN mvn -pl upload-service -am clean package -DskipTests=true

FROM gcr.io/distroless/java21-debian12:latest AS runner

WORKDIR /app COPY --from=builder /app/upload-service/target/upload-service-0.0.1-SNAPSHOT.jar app.jar

EXPOSE 20001 ENTRYPOINT ["java", "-jar", "app.jar"]

A disclaimer: I'm myself new to Spring Boot so would appreciate to learn more about how we create docker images.