-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (29 loc) · 894 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
31
32
33
34
35
36
FROM node:14-bullseye-slim
RUN export DEBIAN_FRONTEND=nointeractive && \
apt-get clean -y && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y locales curl unzip git
# Uncomment en_US.UTF-8 for inclusion in generation
RUN sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && \
# Generate locale
locale-gen && \
apt-get --purge autoremove -y && \
apt-get clean -y
RUN npm install -g @aws-amplify/[email protected] && \
npm install -g amplify-category-video && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install
RUN rm -rf \
/tmp/* \
/var/cache/* \
/var/lib/apt/lists/* \
/var/log/* && \
mkdir /yarn && chmod a+rw /yarn
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
WORKDIR /srv
# COPY build_and_deploy.sh /usr/bin/
# RUN chmod a+x /usr/bin/build_and_deploy.sh
# COPY local-aws-info.json /