Transforme trechos de Dockerfile em imagens que valem a pena compartilhar, sem sair do seu Mac.
Dockerfiles get screenshotted more than almost anything else, usually to show a layer order or a multi-stage build.
O Codeshot detecta Dockerfile pelo código que você cola, então não há seletor de linguagem para errar. Aqui está o mesmo trecho em três dos 30 temas inclusos, renderizados com as folhas de estilo do próprio app.
FROM node:20-alpine AS build
WORKDIR /appCOPY package*.json ./RUN npm ciCOPY . .RUN npm run buildFROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
Atom One · escuro
FROM node:20-alpine AS build
WORKDIR /appCOPY package*.json ./RUN npm ciCOPY . .RUN npm run buildFROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
Edge · escuro
FROM node:20-alpine AS build
WORKDIR /appCOPY package*.json ./RUN npm ciCOPY . .RUN npm run buildFROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
GitHub · escuro
Escolhendo um tema para Dockerfile
Keep the whole stage in frame. A Dockerfile cropped mid-stage is actively misleading, since the order of the instructions is the point.
Acertando o tamanho
Deixe a imagem seguir o conteúdo ou fixe uma proporção — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 ou 3:4 — e exporte em 1×, 2× ou 3× para que continue nítida em telas retina. Copie direto para a área de transferência com ⌘⇧C ou salve com ⌘S.