1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-08-08 22:36:41 +02:00

fix docker files

This commit is contained in:
Lee Brown
2019-08-26 05:44:09 -08:00
parent 581cc1d22f
commit a8e3e4b715
4 changed files with 22 additions and 15 deletions

View File

@ -33,7 +33,8 @@ RUN go get github.com/pilu/fresh
FROM build_base_golang AS dev
ARG service
ARG name
ARG code_path=./cmd/${name}
ARG commit_ref=-
ARG swagInit
@ -41,9 +42,9 @@ ARG swagInit
COPY internal ./internal
# Copy cmd specific packages.
COPY cmd/${service} ./cmd/${service}
COPY cmd/${service}/templates /templates
#COPY cmd/${service}/static /static
COPY ${code_path} ${code_path}
COPY ${code_path}/templates /templates
#COPY ${code_path}/static /static
# Copy the global templates.
ADD resources/templates/shared /templates/shared
@ -51,7 +52,7 @@ ADD configs/fresh-auto-reload.conf /runner.conf
ENV TEMPLATE_DIR=/templates
WORKDIR ./cmd/${service}
WORKDIR ${code_path}
ENTRYPOINT ["fresh", "-c", "/runner.conf"]
@ -76,8 +77,8 @@ ENV TEMPLATE_DIR=/templates
ENV SHARED_TEMPLATE_DIR=/templates/shared
#ENV STATIC_DIR=/static
ARG service
ENV SERVICE_NAME $service
ARG name
ENV SERVICE_NAME $name
ARG env="dev"
ENV ENV $env