1
0
mirror of https://github.com/JustKato/FreePad.git synced 2026-02-23 15:50:46 +02:00

+ Restructuring!

This commit is contained in:
2022-05-17 23:27:20 +03:00
parent 31c74620c2
commit 6268ee2b7f
52 changed files with 122 additions and 54 deletions

View File

@@ -1,17 +1,15 @@
FROM golang:1.18.2-alpine
FROM alpine
ENV GO111MODULE=on
LABEL version="1.0.0"
RUN mkdir /app
# Copy the distribution files
COPY ./dist /app
# Make /app the work directory
WORKDIR /app
COPY . /app
# Install & Run migrations
RUN wget -O /tmp/migrations.tar.gz "https://github.com/golang-migrate/migrate/releases/download/v4.15.2/migrate.linux-386.tar.gz" && \
tar -xzvf /tmp/migrations.tar.gz -C /tmp/ && \
mv /tmp/migrate /usr/bin/migrate
# Expose the listening port
EXPOSE 8080
CMD ["sh", "run.sh"]
# Run the program
ENTRYPOINT ["./freepad"]