You've already forked golang-saas-starter-kit
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:
@ -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
|
||||
|
Reference in New Issue
Block a user