Skip to content

Commit

Permalink
Merge pull request #1447 from userbradley/main
Browse files Browse the repository at this point in the history
fix(formatting): Updated the codeblock for Dockerfile to make it more readable
  • Loading branch information
cpanato authored Nov 21, 2024
2 parents e762d59 + d9df80e commit 7eea9d7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions docs/advanced/migrating-from-dockerfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ If your `Dockerfile` looks like either of the examples in the [official tutorial

Let's review the best practice multi-stage Dockerfile in that tutorial first:

```plaintext
# syntax=docker/dockerfile:1
##
```Dockerfile
## Build
##
FROM golang:1.16-buster AS build

WORKDIR /app
Expand All @@ -22,9 +18,7 @@ COPY *.go ./

RUN go build -o /docker-gs-ping

##
## Deploy
##
FROM gcr.io/distroless/base-debian10

WORKDIR /
Expand Down

0 comments on commit 7eea9d7

Please sign in to comment.