# What I expected
I expected this template to work in v1.17.
It works correctly in v1.14, which I tried out to verify.
# Version of ampersand that was used
# Steps to reproduce
1.
4.
5.
6.
# Screenshot / Video
# Context / Source of ampersand script
<!-- Optional: share your script if possible. It helps us reproduce the problem. Please try to keep the scripts tiny-->
<!-- We'd also love to know how you found the bug: #dogfooding, #manual-testing, #automated-testing, or #user-report if applicable.-->
<!-- If requesting a new feature, explain why you'd like to see it added.-->
What happened
I was tyring to build an image from the
prototype-template
repo. On the fifth step of theDockerfile
, the following error occurred:In the
Dockerfile
that I took from the repoproject-template
, I made two changes:Script.adl
toSwitch_demo.adl
Dockerfile
as I ran it to produce the bug:Lines to add specific compiler version (from Github releases)
ADD https://github.com/AmpersandTarski/Ampersand/releases/download/Ampersand-v4.1.0/ampersand /usr/local/bin/ampersand
RUN chmod +x /usr/local/bin/ampersand
Line to add specific compiler version (from Ampersand image)
COPY --from=ampersandtarski/ampersand:development /bin/ampersand /usr/local/bin
The script content
COPY model /usr/local/project/
If you have custom templates, they need to be copied to where the Ampersand compiler expects them (/var/www)
RUN cp -r -v /usr/local/project/shared/templates /var/www/
WORKDIR /usr/local/project
Generate prototype application from folder (you may want to include the option --ignore-invariant-violations)
RUN ampersand proto Switch_demo.adl \ --proto-dir /var/www \ --verbose
RUN chown -R www-data:www-data /var/www/log /var/www/data /var/www/generics \ && cd /var/www
uncomment lines below if customizations are added to default prototype framework
&& composer install --prefer-dist --no-dev --optimize-autoloader --profile \
&& npm install \
&& gulp build-ampersand \
&& gulp build-project