Skip to content

Commit

Permalink
More renaming for Docker
Browse files Browse the repository at this point in the history
Signed-off-by: Jo Vandeginste <[email protected]>
  • Loading branch information
jovandeginste committed Feb 20, 2024
1 parent 2e9548c commit 6020488
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ COPY views ./views
COPY assets ./assets
COPY --from=tailwind /app/assets/output.css ./assets/output.css

RUN CGO_ENABLED=0 GOOS=linux go build -o /workouts
RUN CGO_ENABLED=0 GOOS=linux go build -o /workout-tracker

FROM alpine:latest

VOLUME /data
WORKDIR /app
COPY --from=gobuilder /workouts ./workouts
COPY --from=gobuilder /workout-tracker ./workout-tracker

WORKDIR /data
ENTRYPOINT ["/app/workout-tracker"]
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ install-deps:
npm install

clean:
rm -fv ./tmp/main ./assets/output.css ./workouts
rm -fv ./tmp/main ./assets/output.css ./workout-tracker
rm -rf ./node_modules/

dev:
Expand All @@ -20,7 +20,7 @@ build-server: build-tw
go build -ldflags "-X main.version=$(GIT_TAG)" -o ./tmp/main ./

build-docker:
docker build -t workouts --pull .
docker build -t workout-tracker --pull .

build-tw:
npx tailwindcss -i ./main.css -o ./assets/output.css
Expand Down

0 comments on commit 6020488

Please sign in to comment.