-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 922 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#*********************************************************************
# Copyright 2021 Regents of the University of California
# All rights reserved
#*********************************************************************
ARG ECR_REGISTRY=ecr_registry_not_set
# This image has been built from an image that matches the Lambda Ruby runtime
# MySql binary dependencies have been embedded into the image
FROM ${ECR_REGISTRY}/uc3-mrt-admin-common
ARG COMMITDATE=''
ARG DOCKTAG=''
RUN dnf -y update && \
dnf -y install gcc-c++ make tar patch && \
dnf clean all
# Add Admin Tool Code to the image
COPY . /var/task/
# Bundle dependencies
RUN bundle install
# https://serverfault.com/questions/683605/docker-container-time-timezone-will-not-reflect-changes
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV COMMITDATE=$COMMITDATE
ENV DOCKTAG=$DOCKTAG