Skip to content

Conversation

@participator
Copy link

@participator participator commented Jun 13, 2019

Proposed changes

Add image of Windows File Explorer that shows a Dockerfile

What Was Done and Why

I could not easily find out how to create a Dockerfile on windows. Many sites include the Docker site mentions using a Dockerfile, but do not say how to create it. I initially thought it was like git (.git), however, I figured out that it is simply Dockerfile.

To make this more clear, I included an image from Windows file explorer showing the folder structure of after all three files are created. This sheds light that a Dockerfile on Windows has no special circumstances to create it.

Related issues (optional)

Fixes # #8933
Issue #8933: Include image of files to make Dockerfile type clear

@GordonTheTurtle
Copy link

Deploy preview for docsdocker ready!

Built with commit d3c177a

https://deploy-preview-8934--docsdocker.netlify.com

@usha-mandya usha-mandya self-assigned this Jul 9, 2019
@craig-osterhout craig-osterhout added the area/get-started Relates to get started and onboarding docs label Aug 4, 2022
@craig-osterhout
Copy link
Contributor

HI @participator, thank you for the contribution.
As mentioned in #8933, this topic has been completely rewritten. I'll close this PR as it is no longer applicable. If any feedback about the new topic, please help provide feedback in a new issue.

@participator
Copy link
Author

participator commented Oct 21, 2022

Hi @craig-osterhout. I just took a look at the documentation and the wording still does not mention how to create a Dockerfile.

Given that there aren't many files that don't include a period (.) at all, I think finding some why to indicate that this is one of the files that do not include a period would be helpful to a newbie (such as past me and likely those who would read the "Get started" guide).

Build the app's container image

In order to build the application, we need to use a Dockerfile. A Dockerfile is simply a text-based script of instructions that is used to create a container image. If you’ve created Dockerfiles before, you might see a few flaws in the Dockerfile below. But, don’t worry. We’ll go over them.

In Microsoft's Dockerfile on Windows, they attempted to solve this gap by adding:
Screen Shot 2022-10-20 at 4 59 36 PM

This "Writing Your First Dockerfile" article has a good example too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/get-started Relates to get started and onboarding docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants