Skip to content

Commit

Permalink
Add docker label and remove dev/test gems
Browse files Browse the repository at this point in the history
  • Loading branch information
nioupola committed Oct 16, 2023
1 parent 0bf9772 commit bfbef7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
FROM ruby:3.1-alpine
LABEL org.opencontainers.image.vendor="Synoptik Labs"
LABEL org.opencontainers.image.authors="[email protected]"
LABEL org.opencontainers.image.title="Staytus"
LABEL org.opencontainers.image.base.name="nioupola/staytus:latest"
LABEL org.opencontainers.image.source="https://github.com/tete2soja/staytus"
LABEL org.opencontainers.image.licenses="MIT"

USER root

RUN apk add --update --no-cache build-base nodejs npm mariadb-dev

COPY . /opt/staytus

ENV BUNDLER_WITHOUT development test
RUN cd /opt/staytus && \
bundle config set --local without 'development:test' && \
bundle config set --local deployment 'true' && \
Expand Down

0 comments on commit bfbef7d

Please sign in to comment.