Skip to content

Commit

Permalink
Fix Docker warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
YtvwlD committed Aug 3, 2024
1 parent 13917db commit f949ac0
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.2-alpine as Builder
FROM ruby:3.2-alpine AS builder
RUN apk --update add g++ make musl-dev

WORKDIR /app
Expand All @@ -16,18 +16,17 @@ COPY ./src .
FROM ruby:3.2-alpine
RUN apk --update add nodejs tzdata

COPY --from=Builder /usr/local/bundle /usr/local/bundle
COPY --from=Builder /app /app
COPY --from=builder /usr/local/bundle /usr/local/bundle
COPY --from=builder /app /app

ENV MOSQUITTO_HOST mqttserver.chaosdorf.space
ENV PING_HOST speedtest-2.unitymedia.de
ENV PROMETHEUS_URL https://prometheus.chaosdorf.space
# Define environment variables
ENV RACK_ENV=production
ENV MOSQUITTO_HOST=mqttserver.chaosdorf.space
ENV PING_HOST=speedtest-2.unitymedia.de
ENV PROMETHEUS_URL=https://prometheus.chaosdorf.space

WORKDIR /app

# Define environment variable
ENV RACK_ENV production

ENTRYPOINT ["bundle", "exec", "smashing", "start"]

EXPOSE 3030/tcp

0 comments on commit f949ac0

Please sign in to comment.