Skip to content

Commit

Permalink
Rename src/money_hack.cr as src/bundle.cr (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdocr authored Sep 28, 2023
1 parent 38ddcec commit 6f0a722
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*.dwarf
app
worker
money_hack
bundle
.env
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ RUN shards install -v
COPY . /opt/
RUN crystal build --static --release ./src/app.cr
RUN crystal build --static --release ./src/worker.cr
RUN crystal build --static --release ./src/money_hack.cr
RUN crystal build --static --release ./src/bundle.cr
# ===============
# Result image with one layer
FROM alpine:latest
WORKDIR /
COPY --from=builder /opt/app .
COPY --from=builder /opt/worker .
COPY --from=builder /opt/money_hack .
ENTRYPOINT ["./money_hack"]
COPY --from=builder /opt/bundle .
ENTRYPOINT ["./bundle"]
File renamed without changes.
2 changes: 1 addition & 1 deletion src/sam.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ task "dev" do
display_name: "Worker",
build_command: "crystal build ./src/worker.cr",
run_command: "./worker",
files: [ "./src/**/*" ]
files: [ "./src/jobs/*.cr" ]
)
]

Expand Down

0 comments on commit 6f0a722

Please sign in to comment.