Sobes.tech
Middle

Tell us about your experience with CI/CD, Docker — what were you able to set up, how did it work?

sobes.tech AI

Answer from AI

In my projects, I configured CI/CD pipelines using GitLab CI and GitHub Actions. This allowed automatic building, testing, and deployment of frontend applications with each commit to the main branch.

I used Docker for containerizing applications and local development. I created Dockerfiles for building images, and set up docker-compose to run multiple services together (e.g., frontend + backend). This sped up deployment and made the environment more predictable.

An example of a simple Dockerfile for a React application:

FROM node:16-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
CMD ["npx", "serve", "-s", "build"]

This image can be used to run the application in a container.

Tell us about your experience with CI/CD, Docker… - sobes.tech