Skip to content

Commit 608f372

Browse files
committed
Adding Dockerfile to run bot in container.
1 parent e0e2477 commit 608f372

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM ubuntu:20.04
2+
3+
RUN apt update && apt upgrade -y && apt install -y maven
4+
5+
RUN useradd --shell /bin/sh --create-home wobbot
6+
7+
8+
WORKDIR /bot
9+
COPY pom.xml pom.xml
10+
COPY src src
11+
COPY .git .git
12+
RUN chown wobbot -R /bot
13+
14+
USER wobbot
15+
16+
RUN mvn install
17+
18+
ENTRYPOINT mvn exec:java

0 commit comments

Comments
 (0)