mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2024-11-01 10:31:22 +00:00
17 lines
533 B
Docker
17 lines
533 B
Docker
|
FROM avatao/debian:buster
|
||
|
|
||
|
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg |\
|
||
|
sudo apt-key add - &&\
|
||
|
echo "deb https://dl.yarnpkg.com/debian/ stable main" |\
|
||
|
sudo tee /etc/apt/sources.list.d/yarn.list &&\
|
||
|
apt-get update &&\
|
||
|
apt-get install -y --no-install-recommends nodejs yarn &&\
|
||
|
rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
WORKDIR /srv
|
||
|
|
||
|
COPY . /srv
|
||
|
RUN yarn install --frozen-lockfile && yarn build --no-progress
|
||
|
|
||
|
CMD yarn start
|