Skip to content

Commit

Permalink
bring migrations in line with dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nics committed Mar 21, 2024
1 parent deacac3 commit c7e1a11
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,21 @@ WORKDIR /build
COPY . .
RUN go get -d -v ./...
RUN go build -o app -v
RUN GOBIN=/build/ go install github.com/jackc/tern/v2@latest

# final stage
FROM alpine:latest

ARG SOURCE_BRANCH
ARG SOURCE_COMMIT
ARG IMAGE_NAME
ENV SOURCE_BRANCH $SOURCE_BRANCH
ENV SOURCE_COMMIT $SOURCE_COMMIT
ENV IMAGE_NAME $IMAGE_NAME

ENV TERN_CONFIG /dist/tern.docker.conf
ENV TERN_MIGRATIONS /dist/etc/snapstore/migrations

WORKDIR /dist
COPY --from=build /build .
EXPOSE 3000
Expand Down

0 comments on commit c7e1a11

Please sign in to comment.