Sobes.tech
Middle

Do you have experience working with Docker?

sobes.tech AI

Answer from AI

Yes, I have experience working with Docker. I used Docker for containerizing applications, which allowed creating isolated and reproducible development and production environments. For example, for a frontend project, I created a Dockerfile that built the application and ran it on Nginx inside a container, making deployment and testing on different machines easier.

Example Dockerfile for a Vue frontend application:

FROM node:16 as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]