-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker container to generate parsers and languages (#154)
The cucumber/build container is huge. Most people only need it to run Berp. So, instead of downloading and maintaining a multi-gigabyte container, lets use a lean one with exactly one purpose.
- Loading branch information
1 parent
47ce60a
commit 7109f8f
Showing
2 changed files
with
49 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Builds a docker image used for building most projects in this repo. It's | ||
# used both by contributors and CI. | ||
# | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update \ | ||
&& apt-get install --assume-yes \ | ||
make \ | ||
jq | ||
|
||
|
||
WORKDIR /app | ||
|
||
## Trigger first run experience by running arbitrary cmd to populate local package cache | ||
RUN dotnet --list-sdks | ||
|
||
# Install Berp (dotnet tool installs are user-global; not system global) | ||
RUN dotnet tool install --global Berp --version 1.4.0 \ | ||
&& echo 'export PATH="$PATH:/root/.dotnet/tools"' >> ~/.bashrc | ||
|
||
WORKDIR /app | ||
|
||
CMD ["/bin/bash"] |