-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (18 loc) · 878 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
#*********************************************************************
# 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
RUN yum -y update
# Build rest-client gem from source
RUN yum -y install gcc-c++ && yum -y groupinstall "Development Tools"
# 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