generated from kookmin-sw/cap-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
29 lines (25 loc) · 1.11 KB
/
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
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Seoul
RUN apt-get update && \
apt-get install tzdata git vim npm -y
WORKDIR /root
RUN git clone -b server-candidate --single-branch https://lab.hanium.or.kr/22_HP017/22_hp017.git
WORKDIR /root/22_HP017
RUN npm i && \
npm i -g pm2 && \
touch .env && \
echo "PORT=" > .env && \
echo "JWT_OWNER_SECRET=" >> .env && \
echo "JWT_FORWARDER_SECRET=" >> .env && \
echo "HSCODE_SERVER_HOST=" >> .env && \
echo "MYSQL_SERVER_HOST=" >> .env && \
echo "MYSQL_SERVER_PORT=" >> .env && \
echo "MYSQL_SERVER_USER=" >> .env && \
echo "MYSQL_SERVER_PASSWORD=" >> .env && \
echo "MYSQL_SERVER_DATABASE=" >> .env && \
echo "ADMIN_PAGE_COOKIE=" >> .env && \
echo "1. Execute the \"vi .env\" command and Write your server environment variable\n" > README.txt && \
echo "2. For typescript build, use the \"npm run build\" command\n" >> README.txt && \
echo "3. For start server, use the \"npm run deploy\" command\n" >> README.txt && \
echo "4. If you want to watch server logs, Use \"pm2 log\" or \"pm2 monit\"" >> README.txt