Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
monakaJP committed Oct 8, 2022
1 parent b9fdfa5 commit 2560ad5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions client/rest/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM ubuntu:20.04

RUN apt-get update && apt-get install -y curl \
&& curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get install -y nodejs \
&& apt-get install -y build-essential \
&& node --version \
&& npm --version \
&& npm install -g yarn

WORKDIR /app
COPY . /app/catapult-rest
RUN cd catapult-rest && npm i

ARG UID=1000
RUN useradd -m -u ${UID} docker

# 作成したユーザーに切り替える
USER ${UID}

0 comments on commit 2560ad5

Please sign in to comment.