mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
* Algins registry admin panel namespace * Adds directory to hold generated certs * Adds openssl db and serial
26 lines
No EOL
643 B
Text
26 lines
No EOL
643 B
Text
FROM ghcr.io/internetee/registry:gems-latest
|
|
LABEL org.opencontainers.image.source=https://github.com/internetee/registry
|
|
ARG YARN_VER='1.22.10'
|
|
ARG RAILS_ENV
|
|
ARG SECRET_KEY_BASE
|
|
|
|
ENV RAILS_ENV "$RAILS_ENV"
|
|
ENV SECRET_KEY_BASE "$SECRET_KEY_BASE"
|
|
|
|
RUN npm install -g yarn@"$YARN_VER"
|
|
|
|
RUN mkdir -p -m776 /opt/webapps/app/tmp/pids
|
|
RUN mkdir -p -m776 /opt/ca/newcerts
|
|
RUN echo -n 12 > /opt/ca/serial
|
|
RUN chmod 776 /opt/ca/serial
|
|
RUN echo '3A0e' > /opt/ca/crlnumber
|
|
RUN chmod 776 /opt/ca/crlnumber
|
|
RUN touch /opt/ca/index.txt
|
|
RUN chmod 776 /opt/ca/index.txt
|
|
WORKDIR /opt/webapps/app
|
|
|
|
COPY . .
|
|
|
|
RUN bundle exec rails assets:precompile
|
|
|
|
EXPOSE 3000 |