mirror of
https://github.com/JustKato/FreePad.git
synced 2026-02-23 15:50:46 +02:00
+ Restructuring!
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -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"]
|
||||
Reference in New Issue
Block a user