You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
431 B
21 lines
431 B
2 years ago
|
FROM node:16.16-alpine
|
||
|
|
||
|
WORKDIR /home/dtp/live/dtp-base
|
||
|
ENV NODE_ENV=production
|
||
|
|
||
|
# Populate git deploy keys
|
||
|
COPY docker/.ssh /root/.ssh
|
||
|
RUN chown -R root:root /root/.ssh
|
||
|
RUN chmod go-rwx /root/.ssh
|
||
|
RUN chmod 644 /root/.ssh/config
|
||
|
RUN chmod 600 /root/.ssh/id_rsa
|
||
|
|
||
|
# Install system dependencies
|
||
|
RUN apk update
|
||
|
RUN apk add ffmpeg git openrc openssh
|
||
|
|
||
|
# Populate Node.js application
|
||
|
COPY package.json yarn.lock ./
|
||
|
RUN yarn
|
||
|
|
||
|
COPY . .
|