Skip to content
Snippets Groups Projects
Verified Commit 62861d72 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixed missing files

parent 14406a13
No related branches found
No related tags found
No related merge requests found
...@@ -16,8 +16,7 @@ RUN npm install ...@@ -16,8 +16,7 @@ RUN npm install
COPY assets /app/assets COPY assets /app/assets
RUN npm run build RUN npm run build
FROM alpine:3.7 FROM alpine
WORKDIR /
COPY --from=go_builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=go_builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=go_builder /go/src/app/app /app COPY --from=go_builder /go/src/app/app /app
COPY templates /templates COPY templates /templates
......
...@@ -29,7 +29,7 @@ func NewConfigFromEnv() Config { ...@@ -29,7 +29,7 @@ func NewConfigFromEnv() Config {
} }
func formatTemplate(w http.ResponseWriter, templateName string, data interface{}) error { func formatTemplate(w http.ResponseWriter, templateName string, data interface{}) error {
pageTemplate, err := template.ParseFiles(fmt.Sprintf("templates/%s", templateName)) pageTemplate, err := template.ParseFiles(fmt.Sprintf("templates/%s.html", templateName))
if err != nil { if err != nil {
return err return err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment