Skip to content

Commit

Permalink
Merge pull request #65 from erlingrj/fix-docker-build-section
Browse files Browse the repository at this point in the history
Update info on how to run Dockerfile
  • Loading branch information
lhstrh authored Nov 8, 2023
2 parents 0076af7 + 77ce19b commit 1590f3b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ How to use this depends on whether your application is federated. You will need

### Using docker build and docker run

Suppose your LF source file is `Foo.lf`. When you run `lfc` or use the IDE to generate code, a file called `Foo.Dockerfile` will appear in the `src_gen` directory. You can use this file to build a Docker image as follows. First, make sure you are in the same directory as the source file. Then issue the command:
Suppose your LF source file is `src/Foo.lf`. When you run `lfc` or use the IDE to generate code, a file called `Dockerfile` will appear in the `src_gen/Foo` directory, see [Structure of an LF project](/docs/handbook/a-first-reactor#structure-of-an-lf-project) for more info. You can build a Docker image as follows. First, navigate into the directory where `Dockerfile` is located. Then issue the command:

```sh
docker build -t foo -f src-gen/Foo.Dockerfile .
docker build -t foo .
```

This will create a Docker image with tag `foo`. The tag is required to be all lower-case letters. By convention, we advise using the LF source file name, converted to lower case.
Expand Down

0 comments on commit 1590f3b

Please sign in to comment.