Added a Dockerfile to the thing
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
FROM alpine:20231219
|
||||
|
||||
# Set the appropriate timezone
|
||||
ENV TZ="Europe/Lisbon"
|
||||
|
||||
|
||||
# Install the required packages
|
||||
RUN apk --no-cache add bash zsh go make \
|
||||
&& rm -rf /tmp/*
|
||||
|
||||
|
||||
# Copy the source files
|
||||
COPY ../src /printer-src
|
||||
|
||||
|
||||
# Add the entrypoint
|
||||
USER $UNAME
|
||||
COPY ./start.sh /start.sh
|
||||
STOPSIGNAL SIGTERM
|
||||
ENTRYPOINT [ "/start.sh" ]
|
||||
@@ -0,0 +1,19 @@
|
||||
build:
|
||||
docker buildx build -t esilva-printer .
|
||||
|
||||
clean:
|
||||
docker container rm esilva-printer-container-test --force
|
||||
|
||||
attach:
|
||||
docker exec -u root -it esilva-printer-container zsh
|
||||
|
||||
attach-test:
|
||||
docker exec -u root -it esilva-printer-container-test zsh
|
||||
|
||||
test: clean
|
||||
docker run \
|
||||
--name esilva-printer-container-test \
|
||||
-p 9099:9099 \
|
||||
-it esilva-printer zsh
|
||||
|
||||
debug: clean test
|
||||
Reference in New Issue
Block a user